storybook/docs/api/main-config-refs.md
Kyle Gach e8a89dbd56 Add /docs/api/main-config-* pages
- Add relevant snippets
2023-05-23 14:15:53 -06:00

817 B

title
config.refs

Type:

{ [key: string]:
  | { title: string; url: string; expanded?: boolean }
  | { disable: boolean }
}

Configures Storybook composition.

<CodeSnippets paths={[ 'common/storybook-main-ref-remote.js.mdx', 'common/storybook-main-ref-remote.ts.mdx', ]} />

Disable a ref

Some package dependencies automatically compose their Storybook in yours. You can disable this behavior by setting disable to true for the package name:

<CodeSnippets paths={[ 'common/storybook-main-disable-refs.js.mdx', 'common/storybook-main-disable-refs.ts.mdx', ]} />