installation

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:


Configure components.json

You will be asked a few questions to configure components.json:


components.json

Add Components

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:


app.tsx