Tag
Tag is a visual indicator. It can be used to show the current state or status of an item, process, or entity. It likely comes in various styles to represent different states. Available in multiple sizes to fit your design needs. Use the appropriate variant to effectively communicate status at a glance.
Usage
Examples
Variant
Use the variant props to change the visual style variant of the tag. The current options supported are default, primary, success, danger, and warning.
Guidelines
primaryis related to product's brand.successto represents a successful outcome.dangerto indicates a critical issue or error.warningto warn user of a potential issue.
Size
Use the size props to change the size of the tag component. The current options supported are small, medium, and large.
Mode
Use the mode props to change the type of the tag component. The default mode gives the tag a slightly rounded edges, while pill mode gives it a fully rounded appearance.
Dot
The dot props to toggle the dot appearance. The optional status dot can act as visual indicator to represent the current state or status of an item.
Props
Tag
| Prop | Type | Default |
|---|---|---|
variant | enum | default |
size | enum | small |
dot | boolean | false |
mode | enum | pill |