Back to Storybook

docs

docs/api/main-config/main-config-docs.mdx

10.3.6542 B
Original Source

Parent: main.js|ts configuration

Type:

ts
{
  defaultName?: string;
  docsMode?: boolean;
}

Configures Storybook's auto-generated documentation.

defaultName

Type: string

Default: 'Docs'

Name used for generated documentation pages.

<CodeSnippets path="main-config-docs-default-name.md" />

docsMode

Type: boolean

Only show documentation pages in the sidebar (usually set with the --docs CLI flag).

<CodeSnippets path="main-config-docs-docs-mode.md" />