storybook/docs/api/main-config-features.md
2024-01-05 13:16:39 +01:00

1.1 KiB

title
features

Parent: main.js|ts configuration

Type:

{
  argTypeTargetsV7?: boolean;
  legacyDecoratorFileOrder?: boolean;
  legacyMdx1?: boolean;
}

Enables Storybook's additional features.

legacyDecoratorFileOrder

Type: boolean

Apply decorators from preview.js before decorators from addons or frameworks. More information.

<CodeSnippets paths={[ 'common/main-config-features-legacy-decorator-file-order.js.mdx', 'common/main-config-features-legacy-decorator-file-order.ts.mdx', ]} />

argTypeTargetsV7

(⚠️ Experimental)

Type: boolean

Filter args with a "target" on the type from the render function.

<CodeSnippets paths={[ 'common/main-config-features-arg-type-targets-v7.js.mdx', 'common/main-config-features-arg-type-targets-v7.ts.mdx', ]} />