副标题
Watch a video tutorial
Subtitle
块可作为文档条目的辅助标题。
¥The Subtitle
block can serve as a secondary heading for your docs entry.
{/* ButtonDocs.mdx */}
import { Subtitle } from '@storybook/blocks';
<Subtitle>This is the subtitle</Subtitle>
副标题
¥Subtitle
import { Subtitle } from '@storybook/blocks';
Subtitle
配置了以下属性:
¥Subtitle
is configured with the following props:
children
类型:JSX.Element | string
¥Type: JSX.Element | string
默认:parameters.docs.subtitle
¥Default: parameters.docs.subtitle
提供内容。
¥Provides the content.
of
类型:CSF 文件导出
¥Type: CSF file exports
指定显示哪个元的副标题。
¥Specifies which meta's subtitle is displayed.