docs/api/main-config/main-config-refs.mdx
Parent: main.js|ts configuration
Type:
{ [key: string]:
| { title: string; url: string; expanded?: boolean, sourceUrl?: string }
| (config: { title: string; url: string; expanded?: boolean, sourceUrl: string }) => { title: string; url: string; expanded?: boolean, sourceUrl?: string }
| { disable: boolean }
}
Configures Storybook composition.
<CodeSnippets path="main-config-refs.md" />You can use a function to dynamically configure refs:
<CodeSnippets path="main-config-refs-with-function.md" />Some package dependencies automatically compose their Storybook in yours. You can disable this behavior by setting disable to true for the package name: