Skip to content

Commit

Permalink
rename docgen option "volar" to "vue-component-meta"
Browse files Browse the repository at this point in the history
  • Loading branch information
larsrickert committed Feb 23, 2024
1 parent 388e29c commit f910dcc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion code/frameworks/vue3-vite/src/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const viteFinal: StorybookConfig['viteFinal'] = async (config, options) =
const docgenPlugin = frameworkOptions.docgen ?? 'vue-docgen-api';

// add docgen plugin depending on framework option
if (docgenPlugin === 'volar') {
if (docgenPlugin === 'vue-component-meta') {
plugins.push(await vueComponentMeta());
} else {
plugins.push(await vueDocgen());
Expand Down
6 changes: 3 additions & 3 deletions code/frameworks/vue3-vite/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ export type FrameworkOptions = {
builder?: BuilderOptions;
/**
* Plugin to use for generation docs for component props, events, slots and exposes.
* Since Storybook 8, the official vue plugin "volar" can be used which supports
* Since Storybook 8, the official vue plugin "vue-component-meta" (Volar) can be used which supports
* more complex types, better type docs, support for js(x)/ts(x) components and more.
*
* "volar" will become the new default in the future and "vue-docgen-api" will be removed.
* "vue-component-meta" will become the new default in the future and "vue-docgen-api" will be removed.
* @default "vue-docgen-api"
*/
docgen?: 'vue-docgen-api' | 'volar';
docgen?: 'vue-docgen-api' | 'vue-component-meta';
};

type StorybookConfigFramework = {
Expand Down

0 comments on commit f910dcc

Please sign in to comment.