Back to Storybook

Subtitle

docs/api/doc-blocks/doc-block-subtitle.mdx

10.3.6621 B
Original Source

The Subtitle block can serve as a secondary heading for your docs entry.

md
import { Subtitle } from '@storybook/addon-docs/blocks';

<Subtitle>This is the subtitle</Subtitle>

Subtitle

js
import { Subtitle } from '@storybook/addon-docs/blocks';

Subtitle is configured with the following props:

children

Type: JSX.Element | string

Default: parameters.docs.subtitle

Provides the content.

of

Type: CSF file exports

Specifies which meta's subtitle is displayed.