Tag
Displays a label or badge to categorize or highlight content.
Examples
Regular
Preview
RegularRegular SoftRegular Basic
Emphasis
Preview
EmphasisEmphasis SoftEmphasis Basic
Gray
Preview
GrayGray SoftGray Basic
Success
Preview
SuccessSuccess SoftSuccess Basic
Error
Preview
ErrorError SoftError Basic
Warning
Preview
WarningWarning SoftWarning Basic
CM
Preview
CMCM SoftCM Basic
GO
Preview
GOGO SoftGO Basic
CIR
Preview
CIRCIR SoftCIR Basic
PED
Preview
PEDPED SoftPED Basic
PREV
Preview
PREVPREV SoftPREV Basic
IA
Preview
IAIA SoftIA Basic
API
| Property | Type | Possible values | Default | Description |
|---|---|---|---|---|
| variant | string | ”regular”, “regular-soft”, “regular-basic”, “emphasis”, “emphasis-soft”, “emphasis-basic”, “gray”, “gray-soft”, “gray-basic”, “success”, “success-soft”, “success-basic”, “error”, “error-soft”, “error-basic”, “warning”, “warning-soft”, “warning-basic”, “cm”, “cm-soft”, “cm-basic”, “go”, “go-soft”, “go-basic”, “cir”, “cir-soft”, “cir-basic”, “ped”, “ped-soft”, “ped-basic”, “prev”, “prev-soft”, “prev-basic”, “ia”, “ia-soft”, “ia-basic" | "regular” | Sets the visual style of the tag. |
| icon | React.ReactElement | - | - | Icon element to be displayed before the tag content. |
| asChild | boolean | true, false | false | Change the default rendered element for the one passed as a child, merging their props and behavior. |
| className | string | - | - | Additional CSS classes to apply to the tag. |
| …props | All native span props | - | - | Allows passing any other standard properties of a span element. |
Last updated on