docs/api/main-config/main-config-features.mdx
Parent: main.js|ts configuration
Type:
<If renderer="react">{
actions?: boolean;
argTypeTargetsV7?: boolean;
backgrounds?: boolean;
componentsManifest?: boolean;
controls?: boolean;
developmentModeForBuild?: boolean;
experimentalCodeExamples?: boolean;
experimentalTestSyntax?: boolean;
highlight?: boolean;
interactions?: boolean;
legacyDecoratorFileOrder?: boolean;
measure?: boolean;
outline?: boolean;
sidebarOnboardingChecklist?: boolean;
toolbars?: boolean;
viewport?: boolean;
}
{
actions?: boolean;
angularFilterNonInputControls?: boolean;
argTypeTargetsV7?: boolean;
backgrounds?: boolean;
controls?: boolean;
developmentModeForBuild?: boolean;
highlight?: boolean;
interactions?: boolean;
legacyDecoratorFileOrder?: boolean;
measure?: boolean;
outline?: boolean;
sidebarOnboardingChecklist?: boolean;
toolbars?: boolean;
viewport?: boolean;
}
<If notRenderer={['react','angular']}>
{
actions?: boolean;
argTypeTargetsV7?: boolean;
backgrounds?: boolean;
controls?: boolean;
developmentModeForBuild?: boolean;
highlight?: boolean;
interactions?: boolean;
legacyDecoratorFileOrder?: boolean;
measure?: boolean;
outline?: boolean;
sidebarOnboardingChecklist?: boolean;
toolbars?: boolean;
viewport?: boolean;
}
Enables Storybook's additional features.
actionsType: boolean
Default: true
Enable the Actions feature.
<If renderer="angular">angularFilterNonInputControlsType: boolean
Filter non-input controls in Angular.
</If>argTypeTargetsV7(⚠️ Experimental)
Type: boolean
Default: true
Filter args with a "target" on the type from the render function.
<CodeSnippets path="main-config-features-arg-type-targets-v7.md" />backgroundsType: boolean
Default: true
Enable the Backgrounds feature.
<If renderer="react">componentsManifestType: boolean
Default: false
Generate manifests, used by the MCP server.
<CodeSnippets path="main-config-features-components-manifest.md" /> </If>controlsType: boolean
Default: true
Enable the Controls feature.
developmentModeForBuildType: boolean
Set NODE_ENV to 'development' in built Storybooks for better testing and debugging capabilities.
experimentalCodeExamples(⚠️ Experimental)
Type: boolean
Enable the new code example generation method for React components (as seen in the story previews in an autodocs page).
Unlike the current implementation, this method reads the actual stories source file, which is faster to generate, more readable, and more accurate. However, they are not dynamic: they won't update if you change values in the Controls table.
<CodeSnippets path="main-config-features-experimental-code-examples.md" />experimentalTestSyntax(⚠️ Experimental)
Type: boolean
Enable the experimental .test method with the CSF Next format.
highlightType: boolean
Default: true
Enable the Highlight feature.
interactionsType: boolean
Default: true
Enable the Interactions feature.
legacyDecoratorFileOrderType: boolean
Apply decorators from preview.js before decorators from addons or frameworks. More information.
<CodeSnippets path="main-config-features-legacy-decorator-file-order.md" />measureType: boolean
Default: true
Enable the Measure feature.
outlineType: boolean
Default: true
Enable the Outline feature.
sidebarOnboardingChecklistType: boolean
Default: true
Enable the onboarding checklist sidebar widget.
viewportType: boolean
Default: true
Enable the Viewport feature.