Next.js
Install and configure Next.js.
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 new-york, 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:
Edit on GitHub
Last updated on