Merge branch 'norbert/globals-docs-changes' of https://github.com/storybookjs/storybook into norbert/globals-docs-changes

This commit is contained in:
Norbert de Langen 2024-07-29 11:47:04 +02:00
commit d64bff22c8

View File

@ -50,10 +50,22 @@ Filter args with a "target" on the type from the render function.
Type: `boolean`
Use the modern viewport story globals API.
Configures the [Viewports addon](../../essentials/backgrounds.mdx) to opt-in to the new story globals API for configuring viewports.
{/* prettier-ignore-start */}
<CodeSnippets path="main-config-features-viewport-story-globals.md" />
{/* prettier-ignore-end */}
## `backgroundsStoryGlobals`
Type: `boolean`
Use the modern backgrounds story globals API.
Configures the [Backgrounds addon](../../essentials/backgrounds.mdx) to opt-in to the new story globals API for configuring backgrounds.
{/* prettier-ignore-start */}
<CodeSnippets path="main-config-features-backgrounds-story-globals.md" />
{/* prettier-ignore-end */}