storybook-addon-vue-info is a Storybook addon designed to display detailed information about Vue components, including their props, events, slots, and source code directly within the Storybook UI. The current stable version is 1.4.2. While it served its purpose by integrating Vue component documentation into Storybook, the project's README explicitly states that it has been superseded by Storybook's official Docs Mode (part of `@storybook/addon-docs`), which offers more comprehensive documentation features and supports various frameworks, including Vue.js. This addon's development appears to be in maintenance mode, with no significant feature additions since the recommendation to switch to addon-docs. Users are strongly encouraged to migrate to `@storybook/addon-docs` for up-to-date and future-proof documentation solutions.
npm install storybook-addon-vue-infoVerified import paths — ran on the pinned version, not inferred.
Demonstrates installation, configuration of webpack and Storybook, and basic usage of `withInfo` and `setDefaults` to display component information within a Storybook story, including setup for a Vue component.
Migrate to `@storybook/addon-docs`. Consult the official Storybook documentation for migration guides and setup instructions.
Ensure `vue-docgen-loader` and `vue-docgen-api` are installed as dev dependencies, and configure `vue-docgen-loader` in your `.storybook/webpack.config.js` with the `enforce: 'post'` option.
Replace `propsDescription` with `description` in your story `info` options, for example: `{ info: { description: 'Prop description here.' } }`.Update the import statement to `import 'storybook-addon-vue-info/lib/register'` in `.storybook/addons.js`.
Always include an `info` object in your story parameters, e.g., `add('story', () => ({...}), { info: { summary: '...' } })`.Change `import 'storybook-addon-vue-info/register'` to `import 'storybook-addon-vue-info/lib/register'`.
Ensure each story using `withInfo` has an `info` object in its parameters: `{ info: { summary: '...' } }`. Additionally, verify `vue-docgen-loader` is set up correctly in `webpack.config.js` as per documentation.Check `vue-docgen-loader` configuration in `.storybook/webpack.config.js`, ensuring the `test` regex matches your Vue files and `enforce: 'post'` is set. Consider updating `vue-docgen-api` and `vue-docgen-loader` to compatible versions.