A Storybook addon that allows writing stories in native Vue Single File Component (SFC) syntax, transpiling them to Storybook's CSF format. Current version 0.7.1 (alpha) requires Node >=20 and peer deps including @storybook/vue3-vite ^10.0.0, storybook ^10.0.0, Vue ^3.2.47, and optionally Nuxt 3/4 or various bundlers (Vite, webpack, Rollup, esbuild). Key differentiators: idiomatic Vue templates instead of string-based stories, full Volar editor support, custom <docs> block for markdown documentation, and automatic Vite integration via unplugin. Comparable to Histoire but scoped to Storybook.
npm install storybook-vue-addonNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures Storybook main.js to load .stories.vue files and adds the addon, then writes a simple Vue story SFC with Stories, Story, and docs block.
Pin to exact version and test upgrades carefully.
Ensure you are using @storybook/vue3-vite (not vue3-webpack5).
Update Node.js to v20 or later.
Install storybook@^10.0.0.
Add a tsconfig.json with 'jsx': 'preserve' and include vue files.
npm install --save-dev storybook-vue-addon and ensure tsconfig includes 'vue' types.
npm install --save-dev @storybook/vue3-vite@^10.0.0
Ensure stories is an array of glob patterns, e.g., ['../src/**/*.stories.@(js|ts|vue)']