Skip to content

Latest commit

 

History

History
46 lines (29 loc) · 1.09 KB

main-config-refs.mdx

File metadata and controls

46 lines (29 loc) · 1.09 KB
title sidebar
refs
order title
18
refs

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.

{/* prettier-ignore-start */}

{/* prettier-ignore-end */}

Using a function

You can use a function to dynamically configure refs:

{/* prettier-ignore-start */}

{/* prettier-ignore-end */}

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:

{/* prettier-ignore-start */}

{/* prettier-ignore-end */}