Tags are used to visually categorise content. They can indicate the status of an item or represent a category of information. By default, tags have a blue background and text color.
<strong class="gi-tag gi-tag-info"> Completed </strong>
{{ govieTag({ "text": "Completed", "type": "info" }) }}
import { Tag } from '@govie-ds/react';
<Tag
text="Completed"
type="info"
/>
Use the tag component to visually represent the status of items, categorise content, or highlight important information. Tags are particularly useful for:
Tags help enhance user experience by providing clear and immediate context for information.
Avoid using the tag component if:
In such cases, consider alternative UI elements that better suit your requirements.
Figma Library | Considering |
Local HTML | Stable |
Global HTML | Beta |
Global React | Beta |