Storybook package for Nuxt framework with zero configs. seamless integration supporting all Nuxt fancy features
https://github.com/storybook-vue/nuxt/assets/711292/e66a1899-ab7c-42dd-b358-59e22ff0f609
👉 All in-built Nuxt Components
👉 JSX
👉 Postcss
👉 Typescript (already supported out of the box by Storybook)
👉 Nuxt DevTools : finally as Bonus, Nuxt DevTools works amazingly with your Storybook, full features
https://github.com/storybook-vue/nuxt/assets/711292/63cc1fb3-ec6b-4df2-ad61-d87e5692f385
Checkout the demo repo storybook7-nuxt3-demo or try it on Stackblitz
Follow the prompts after running this command in your Nuxt project's root directory:
npx storybook-nuxt init
More on getting started with Storybook
When running the upgrade
command above, you should get a prompt asking you to migrate to @storybook-vue/nuxt
, which should handle everything for you. In case auto-migration does not work for your project, refer to the manual migration below.
Update your main.js
to change the framework property:
// .storybook/main.js
export default {
// ...
framework: {
name: '@storybook-vue/nuxt', // Add this
options: {},
},
}
In progress
This repository is licensed under the MIT License. Feel free to use the code and modify it according to your needs.
🔖 Mail: javachakir@gmail.com
💬 Discord: ChakAs3
🐦⬛ Twitter: @ChakirQatab