mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 11:11:53 +08:00
- Simplify heading hierarchy - Make it more explicit that some block's prop's default values are derived from parameters
24 lines
371 B
Markdown
24 lines
371 B
Markdown
---
|
|
title: 'Subtitle'
|
|
---
|
|
|
|
The `Subtitle` block can serve as a secondary heading for your docs entry.
|
|
|
|

|
|
|
|
## Subtitle
|
|
|
|
```js
|
|
import { Subtitle } from '@storybook/blocks';
|
|
```
|
|
|
|
`Subtitle` is configured with the following props:
|
|
|
|
### `children`
|
|
|
|
Type: `JSX.Element | string`
|
|
|
|
Default: `parameters.componentSubtitle`
|
|
|
|
Provides the content.
|