Skip to content
GitHub

Astro

Install Shark UI in an Astro project.

Create project

Create a new Astro project with Tailwind and React:

Edit tsconfig.json

Add path aliases so imports resolve correctly:

TypeScripttsconfig.json

Run the CLI

Run the shadcn init command to set up your project:

Add components

Add components from the Shark registry:

Use them in an Astro page with a React client directive:

src/pages/index.astro