Skip to content

Latest commit

 

History

History
71 lines (42 loc) · 1.59 KB

main-config-features.mdx

File metadata and controls

71 lines (42 loc) · 1.59 KB
title sidebar
features
order title
11
features

Parent: main.js|ts configuration

Type:

{
  argTypeTargetsV7?: boolean;
  legacyDecoratorFileOrder?: boolean;
  viewportStoryGlobals?: boolean;
  backgroundsStoryGlobals?: boolean;
}

Enables Storybook's additional features.

legacyDecoratorFileOrder

Type: boolean

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

{/* prettier-ignore-start */}

{/* prettier-ignore-end */}

argTypeTargetsV7

(⚠️ Experimental)

Type: boolean

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

{/* prettier-ignore-start */}

{/* prettier-ignore-end */}

viewportStoryGlobals

Type: boolean

Configures the Viewports addon to opt-in to the new story globals API for configuring viewports.

{/* prettier-ignore-start */}

{/* prettier-ignore-end */}

backgroundsStoryGlobals

Type: boolean

Configures the Backgrounds addon to opt-in to the new story globals API for configuring backgrounds.

{/* prettier-ignore-start */}

{/* prettier-ignore-end */}