If you're using Next.js 15, see the Next.js 15 + React 19 guide.
Create project
Run the init
command to create a new Next.js project or to setup an existing one:
You can use the -d
flag for defaults i.e miami
, zinc
and yes
for the css variables.
Configure components.json
You will be asked a few questions to configure components.json
:
That's it
You can now start adding components to your project.
The command above will add the Button
component to your project. You can then import it like this: