Skip to content
GitHub

Next.js

Install Shark UI in a Next.js project.

Create project

Create a new Next.js project:

Add CSS

Create a file styles/globals.css with:

styles/globals.css

Run the CLI

Run the shadcn init command to set up your project:

The CLI asks a few questions and creates a components.json file with path aliases, style options, and Tailwind config.

Add components

Add components from the Shark registry by URL:

Then import and use them: