Skip to content

Latest commit

 

History

History
44 lines (27 loc) · 856 Bytes

doc-block-subtitle.mdx

File metadata and controls

44 lines (27 loc) · 856 Bytes
title sidebar
Subtitle
order title
13
Subtitle

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

Screenshot of Subtitle block

{/* prettier-ignore-start */}

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

<Subtitle>This is the subtitle</Subtitle>

{/* prettier-ignore-end */}

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.