storybook/docs/api/doc-block-subtitle.md
Kyle Gach fb48b37e90 Address comments
- Consistently include space after filename comment
- Include `<Meta />` in snippets for blocks that are used in attached docs
- Grammatical improvements
2023-02-21 22:38:18 -07:00

569 B

title
Subtitle

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

Screenshot of Subtitle block

{/* ButtonDocs.mdx */}

import { Subtitle } from '@storybook/blocks';

<Subtitle>Allows the user to start an action</Subtitle>

Subtitle

import { Subtitle } from '@storybook/blocks';

Subtitle is configured with the following props:

children

Type: JSX.Element | string

Default: parameters.componentSubtitle

Provides the content.