GitHub

Astro

Instructions to install Shark UI in an Astro project

Create project

To create a new Astro project, you can use the following command:

Edit tsconfig.json file

Add the following code to the tsconfig.json file to resolve paths:

TypeScripttsconfig.json

Run the CLI

Run the shadcn init command to setup your project:

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:

src/pages/index.astro