Viewing the Live Storybook
You can explore the complete component library in the deployed Storybook instance:View Storybook
Browse all components, guides, and examples in the live Storybook deployment
Running Storybook Locally
If you’re contributing to the design system or want to test components locally, you can run Storybook on your machine.Storybook Configuration
The Storybook setup is configured in the.storybook directory with the following key files:
Main Configuration
.storybook/main.ts
Preview Configuration
The preview configuration wraps all stories with the Nuxt UI App component and defines the story organization:.storybook/preview.ts
Story Structure
Stories are located alongside components in theapp/components directory. The pattern follows:
Writing Stories
When creating a new component story, follow this pattern:ComponentName.stories.ts
Building Storybook
To build a static version of Storybook for deployment:- Runs
nuxt prepareto generate necessary Nuxt files - Sets the
STORYBOOK=trueenvironment variable - Builds a static Storybook site in the
storybook-staticdirectory
Storybook Addons
This project uses the following Storybook addons:Chromatic
Visual testing and review platform integration
Addon Docs
Automatic documentation generation from component props and JSDoc comments
Environment Variables
nuxt.config.ts
Automatic Documentation
All stories are tagged withautodocs, which means Storybook automatically generates documentation pages based on:
- Component props and their types
- JSDoc comments
- Default values
- Story examples
Next Steps
- Learn about local development workflow
- Explore using this as a Nuxt Layer
- Check out the Component Overview