Skip to main content

Text 文本

使用场景#

用于展示行内文本。

示例#

基本示例#

(note) In love with Hippo(body) In love with Hippo(subtitle) In love with Hippo(title) In love with Hippo(subheader) In love with Hippo(header) In love with Hippo
inline

文本截断#

Lorem ipsum is placeholder text commonly used in the graphic, print, and publishing industries for previewing layouts and visual mockups.
inline

多行阶段#

"The quick brown fox jumps over the lazy dog" is an English-language pangram—a sentence that contains all of the letters of the English alphabet. Owing to its existence, Chakra was created.
inline

改变渲染元素#

Italic
Underline
I18N
Citation
Deleted
Emphasis
Inserted
Ctrl + C
Highlighted
Strikethrough
Sample
sub
sup
inline

API#

字段描述
asany
alignTextAlign
truncatedboolean
是否在容器内自动截断(单行展示)
lineClampnumber
最多展示的行数(超出截断)
classNamestring
styleCSSProperties
fontFamilyFontFamily
fontStyleFontStyle
letterSpacingLetterSpacing<0 | (string & {})>
textAlignTextAlign
fontSizestring
fontWeightFontWeight
lineHeightStringOrNumber
colorColor
bgColor
backgroundColorColor
opacityOpacity
Copyright © 2021 Alibaba Inc.
Built with ❤️ by hema-FE.