Skip to content
X

Installation

If you don’t have a project yet, we recommend using this starter template.

As this project is distributed as a shadcn registry, run the shadcn init command to setup your project:

Terminal window
npx shadcn@latest init

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

tsconfig.json
{
"compilerOptions": {
// ...
"baseUrl": ".",
"paths": {
"@/*": [
"./src/*"
]
}
// ...
}
}

Add fulldev/ui as a namespaced registry to your components.json file:

components.json
{
"registries": {
"@fulldev": "https://ui.full.dev/r/{name}.json"
}
}

You can now start adding components to your project.

Terminal window
npx shadcn@latest add @fulldev/button

or multiple resources at once:

Terminal window
npx shadcn@latest add @fulldev/button @fulldev/item @fulldev/list
Terminal window
npx shadcn@latest add @fulldev/components
npx shadcn@latest add @fulldev/blocks

The commands above will add components to your project. You can then import them like this:

src/pages/index.astro
---
import { Button } from "@/components/ui/button"
---
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/svg+xml" href="/logo-fulldev.svg" />
<meta name="generator" content={Astro.generator} />
<title>Astro + fulldev/ui</title>
</head>
<body>
<div class="grid h-screen place-items-center content-center">
<Button>Button</Button>
</div>
</body>
</html>