Tag
Small tag labels to insert anywhere.
Playground
Props
Examples
Colors
PrimaryLinkInfoSuccessWarningDangerBlackDarkLightWhite
Sizes
Modifiers
List of tags
The Tags component is a container for a list of tags.
Addons
You can attach tags together with the addons prop on the Tags container.
Props
Tag
| Prop | Type | Default | Description |
|---|---|---|---|
as | ElementType | 'span' | The HTML element to render as. |
children | ReactNode | - | The content of the tag. |
clamp | boolean | false | Truncates text to a single line. |
className | string | - | Additional CSS classes. |
color | ThemeColor | - | Sets the color of the tag. |
icon | DynamicIcon | - | An icon to display inside the tag. |
light | boolean | false | Applies the light color variant. |
rounded | boolean | false | Makes the tag fully rounded (pill shape). |
size | ThemeSize | - | Sets the size of the tag. |
Tags
| Prop | Type | Default | Description |
|---|---|---|---|
addons | boolean | false | Attaches tags together. |
alignment | 'centered' | 'right' | - | Aligns the tags. |
children | ReactNode | - | The tags to display. |
className | string | - | Additional CSS classes. |
See also
Last updated on