Rate this page:
A component that represents a tag, commonly used for labeling.
1
import ForgeUI, { Tag } from '@forge/ui';
Name | Type | Required | Description |
---|---|---|---|
text | string | Yes | The text content to display. |
color | string | The color of the tag. Valid values are green , blue ,
red , purple , grey , teal , yellow ,
green-light , blue-light , red-light ,
purple-light , grey-light , teal-light ,
and yellow-light . Defaults to light-grey . |
Render a basic tag next to a colored tag.
1 2
<Tag text="decision" />
<Tag text="spec" color="blue-light" />
Rate this page: