Install and configure Next.js.
Run the init
command to create a new Next.js project or to setup an existing one:
You will be asked a few questions to configure components.json
:
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: