Integrate Storybook into your Nuxt application.
pnpm add -D @storybook-vue/nuxt-storybook
Update your nuxt.config:
  modules: [
    '@storybook-vue/nuxt-storybook',
  ],
  storybook: {
    url: 'http://localhost:6006',
    storybookRoute: '/__storybook__',
    port: 6006,
  },Then run pnpm dev to start you Nuxt server.
https://github.com/chakAs3/nuxt-storybook-module-demo
👌 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 both Nuxt 3 and Nuxt 2
- Install dependencies with pnpm.
- Run pnpm dev:prepareto generate stubbeddistdirectory.
- Make your changes.
- Run pnpm lintto verify that there is no issues (consider adding tests).
- Submit a PR.
This repository is licensed under the MIT License. Feel free to use the code and modify it according to your needs.
🔖 Mail: [email protected]
💬 Discord: ChakAs3
🐦⬛ Twitter: @ChakirQatab
