This is a registry of storybook stories for all the shadcn components. Build using the shadcn-registry-template and using the shadcn CLI to build the registry.
Configure this registry in your components.json:
# Install using registry namespace
npx shadcn@latest add @storybook/button-story
# Or install directly via URL
npx shadcn@latest add https://registry.lloydrichards.dev/v3/radix/button-story.json
# npx shadcn@latest add https://registry.lloydrichards.dev/v3/base/button-story.jsonYou can visit the storybook registry to browse available components and copy installation commands.
-
Clone the repository
-
Install the dependencies
bun install
-
Run the development server
bun dev
-
Add/update the stories in the
src/registrydirectory -
Add/update the
registry.jsonfile -
Build the registry
bun registry:build
-
Run the local development server
bun dev
-
test the registry by running the shadcn CLI
npx shadcn@latest add http://localhost:3000/v2/r/your-component.json
Visit the shadcn documentation to view the full documentation.
{ "registries": { "@storybook": "https://registry.lloydrichards.dev/v3/radix/{name}.json" // Or for base UI projects // "@storybook": "https://registry.lloydrichards.dev/v3/base/{name}.json" } }