tencent cloud

Last updated:2026-02-03 15:47:27
Label
Last updated: 2026-02-03 15:47:27

Component Feature

Tag component for form field, associated with form control.

Basic Usage

Set tag text via value and associate form field via fieldName.
Template example:
<Label value="userName" fieldName="username" />
Effect display as follows:




Attribute Description

Property Name
Type
Description
Default value
value
string
Tag text content
-
fieldName
string
Associated form field name
-
size
"xs" | "sm" | "md" | "lg" | "xl"
text dimension
"md"
weight
"normal" | "medium" | "semibold" | "bold"
Font thickness
"medium"
textAlign
"start" | "center" | "end"
Text alignment
"start"
color
string | ThemeColor
text color
-
Note:
★ Marked with required attribute.

ThemeColor Object

Property Name
Type
Description
light
string
light mode color
dark
string
dark mode color

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

Feedback