Astro
Install and configure shadcn/ui for Astro
Note: The following guide is for Tailwind v4. If you are using Tailwind
v3, use shadcn@2.3.0
.
Edit tsconfig.json file
Add the following code to the tsconfig.json
file to resolve paths:
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: