@wladyslaw-malejew/storybook
v8.0.0
Published
Storybook module for Nuxt
Downloads
1
Readme
Nuxt Storybook
Integrate Storybook into your Nuxt application.
Installing
npx nuxi@latest module add storybook
Update your nuxt.config
:
modules: [
'@nuxtjs/storybook',
],
storybook: {
url: 'http://localhost:6006',
storybookRoute: '/__storybook__',
port: 6006,
},
Then run pnpm dev
to start you 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 / Storybook 7
Nuxt 2
Nuxt 2 is supported with Storybook v6,you can check legacy code on the v4 branch.
Contributing
- Install dependencies with
pnpm
. - Run
pnpm dev:prepare
to generate stubbeddist
directory. - Make your changes.
- Run
pnpm lint
to verify that there is 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: [email protected]
💬 Discord: ChakAs3
🐦⬛ Twitter: @ChakirQatab