Skip to content

Text ​

Used for text.

Basic ​

Use the type attribute to define Text's type.

Sizes ​

Use attribute size to set additional sizes with large, default or small.

Ellipsis ​

Pass the truncated prop to render an ellipsis when the text exceeds the width of the viewport or max-width set. line-clamp prop to render multiline ellipsis.

Mixed ​

Text mixed component

API ​

Attributes ​

NameDescriptionTypeDefault
typetext type'primary' | 'success' | 'warning' | 'danger' | 'info'—
sizetext size'large' | 'default' | 'small'default
truncatedrender ellipsisbooleanfalse
line-clampmaximum linesstring | number—

Slots ​

NameDescription
defaultdefault content

Released under the MIT License.