@nuxtjs/storybook
@nuxtjs/storybook
Easily integrate Storybook to design, build, and test your UI components in isolation.
Nuxt Storybook
Integrate Storybook into your Nuxt application.
Installing
npx nuxi@latest module add storybookUpdate your nuxt.config:
modules: [
'@nuxtjs/storybook',
],
storybook: {
host: 'http://localhost',
route: '/_storybook',
port: 6006,
},Then run pnpm dev to start your Nuxt server.
Demo
https://github.com/storybook-vue/nuxt-storybook-module-demo
Features
๐ Zero configuration to start (see video)
๐ช Access Storybook Terminal
๐จ Devtools tab with Storybook app
โ๏ธ Reference your Storybook config in your app
๐ฆ Extendable by Nuxt modules
๐ Supports Nuxt 3 and Nuxt 4 with Storybook 10
Contributing
- Install dependencies with
pnpm. - Run
pnpm dev:prepareto generate stubbeddistdirectory. - Make your changes.
- Run
pnpm lintto verify that there are no issues (consider adding tests). - Submit a PR.
License
This repository is licensed under the MIT License. Feel free to use the code and modify it according to your needs.
Contacts :
๐ Mail: javachakir@gmail.com
๐ฌ Discord: ChakAs3
๐ฆโโฌ Twitter: @ChakirQatab
Sponsors
Thanks to Chromatic for providing the visual testing platform that helps us review UI changes and catch visual regressions.