This project now includes a component registry powered by the shadcn registry format. The registry allows users to easily install components from this UI library in their own projects.
registry.json
- Main registry file that defines all available componentspublic/r/
- Directory containing individual registry item JSON files for each componentscripts/build-registry.js
- Script to generate the registry item files from the main registry.jsonapp/registry/
- Registry UI to browse and view componentsapp/registry/[component]/
- Individual component pages with preview and "Open in v0" button
- Add your new component to
config/components.ts
- Add the component entry to
registry.json
- Run
npm run registry:generate
to generate the registry item files
Users can install components using the shadcn CLI:
npx shadcn@latest add https://crafter-ui.vercel.app/r/[component-name].json
Components include "Open in v0" buttons for easy customization on v0.dev.