storybook/docs/api/doc-block-subtitle.md
2023-02-22 14:24:04 -07:00

595 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>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.componentSubtitle

Provides the content.