Our registry system allows you to build components in a dedicated folder and then automatically generate JSON manifests for the shadcn CLI.
Live Preview
Here is an example component from our registry:
Loading component...
Installation
You can install this component using the shadcn CLI:
npx shadcn@latest add https://nahean.dev/r/my-button.json
How it works
- Develop: Build your component in
src/registry/ui/. - Register: Add it to
src/registry/index.ts. - Build: Run
npm run build:registryto generate the JSON files and the dynamic index. - Showcase: Use
<ComponentPreview name="your-component-demo" />in your MDX files.
Previous Installation Guide
Next PageRegistry Guide