排版
Watch a video tutorial
Typeset
块有助于记录整个项目中使用的字体。
¥The Typeset
block helps document the fonts used throughout your project.
排版
¥Typeset
Typeset
配置了以下属性:
¥Typeset
is configured with the following props:
fontFamily
类型:string
¥Type: string
提供要显示的字体系列。
¥Provides a font family to be displayed.
fontSizes
类型:(string | number)[]
¥Type: (string | number)[]
提供可用字体大小列表(在 px
中)。
¥Provides a list of available font sizes (in px
).
fontWeight
类型:number
¥Type: number
指定要显示的字体粗细。
¥Specifies the weight of the font to be displayed.
sampleText
类型:string
¥Type: string
设置要显示的文本。
¥Sets the text to be displayed.