Tag
Display a unique keyword, optionally as a part of a set.
General
The basic Tag usage.
Types
Show different states with colors.
Invert
Invert color and background.
APIs
Tag.Props
| Attribute | Description | Type | Accepted values | Default |
|---|---|---|---|---|
| type | tag type | TagTypes | - | default |
| invert | filled variant: invert color and background | boolean | - | false |
| light | light variant: tinted background | boolean | - | false |
| subtle | subtle variant: no background | boolean | - | false |
| ... | native props | HTMLAttributes | 'id', 'className', ... | - |
TagTypes
type TagTypes =
| 'default'
| 'secondary'
| 'success'
| 'warning'
| 'error'
| 'dark'
| 'lite'