标题
观看视频教程
标题
块作为您的文档条目主要标题。它通常用于提供组件或页面名称。
{/* ButtonDocs.mdx */}
import { Title } from '@storybook/blocks';
<Title>This is the title</Title>
标题
import { Title } from '@storybook/blocks';
标题
使用以下属性配置
children
类型: JSX.Element | string
提供内容。在 附加 CSF 文件中回退到 title
的值(或从 autotitle 导出的值),并修剪到最后一个段。例如,如果标题值为 'path/to/components/Button'
,则默认内容为 'Button'
。
of
类型: CSF 文件导出
指定显示哪个元数据的标题。