Storybook Docs

Subtitle

Watch a video tutorial on the Storybook channel

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

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

Subtitle

import { Subtitle } from '@storybook/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.

Join the community

6,378 developers and counting
Open source software
Maintained by
Chromatic
Special thanks to Netlify and CircleCi