Storybook 9 is coming! Join the newsletter to get it first.
Docs
Storybook Docs

Subtitle

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

Screenshot of Subtitle block

ButtonDocs.mdx
import { Subtitle } from '@storybook/addon-docs/blocks';
 
<Subtitle>This is the subtitle</Subtitle>

Subtitle

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.