Installation
How to install dependencies and structure your app.
TypeScript
This project and the components are written in TypeScript. We recommend using TypeScript for your project as well.
Note:
The following guide is for Tailwind v4. If you are using Tailwind v3, use shadcn@2.3.0.
1. Create Project
Run the init command to create a new Next.js project or to setup an existing one:
2. 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: