tencent cloud

Last updated:2026-02-03 15:46:15
Caption
Last updated: 2026-02-03 15:46:15

Component Feature

A component for displaying auxiliary explanation text, usually used for showing secondary information or prompt content, with configurations such as text size, thickness, color, and alignment mode.

Basic Usage

Set the text content via value and control the font size with size.
Template example:
<Caption value="This is an auxiliary explanation text" size="sm" />
Effect display as follows:




Attribute Description

Property Name
Type
Description
Default value
value
string
Auxiliary Text Content
-
size
"sm" | "md" | "lg"
text dimension
"sm"
color
string
text color
-
weight
"normal" | "medium" | "semibold" | "bold"
Font thickness
"normal"
textAlign
"start" | "center" | "end"
text alignment
"start"
truncate
boolean
Truncate overflow text or not
false
maxLines
number
maximum display lines
-
Note:
Marked with required attribute.

Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback