加入直播:周四,美国东部时间上午 11 点,Storybook 9 发布与 AMA(你问我答)
文档
Storybook Docs

副标题

Subtitle 块可以作为文档条目的二级标题。

Screenshot of Subtitle block

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

副标题

import { Subtitle } from '@storybook/addon-docs/blocks';

Subtitle 使用以下 props 进行配置

children

类型: JSX.Element | string

默认值: parameters.docs.subtitle

提供内容。

of

类型: CSF 文件导出

指定显示哪个 meta 的副标题。