Components · Data Display · Tag
Back to Tag typesTag
Use for a small labeled chip that categorizes, filters, or flags a status - like "In progress" or an active filter pill - one Tag component, controlled by properties, not a one-off pill built from scratch each time.
Properties
Corner radius and label text are properties of the same component, not separate chips - change them below to check this tag's colors and forms in the Live Preview.
Live Preview
All 4 colors compared side by side, each in all 3 forms - Default, Removable and Selected. One full matrix is rendered per selected Corner radius, with the current label applied throughout.
Checkable
Ant's Tag.CheckableTag - real buttons, click one to toggle it. Unlike a radio group, any number can be on at once; each tag's own aria-pressed state is what "Selected" in the matrix above was only ever a static picture of.
When to use
Any small labeled chip used to categorize, filter, or flag the status of an item.
Component Guide
Overview
Tag is a small labeled chip that categorizes, filters, or flags a status - like "In progress" or an active filter pill - a standalone piece of metadata, unlike Badge, which is meant to overlay or sit attached to another element.
When to Use
- A status label - "In progress", "Active", "Archived".
- A category or filter chip - showing an applied filter, removable with its own close control.
- A skill/keyword tag or a priority flag - any standalone piece of categorical metadata attached to an item.
When Not to Use
- A count or dot overlaid on another element - use Badge instead - Tag stands alone, Badge attaches to something else.
- A clickable action rather than a label - use Button - a Tag communicates a static attribute, not an action to take (unless it's specifically a removable filter chip).
- Long, multi-word descriptive text - keep Tags short; use Description or plain text for longer explanatory content.
Best Practices
- Use consistent colors for the same status or category everywhere it appears, so users learn the color-meaning mapping.
- Keep tag text short - a word or two - so several can sit together without wrapping awkwardly.
- Only add a remove ('x') control on tags the user can actually remove (like an active filter), not on static status labels.
Do and Don't
Do
A one or two-word state name, colour reinforcing the status rather than carrying it alone.
Don't
A full sentence inside a chip fights the pill shape it is rendered in and forces the row to wrap. Move detail like this into body text.
Accessibility
- Status or category meaning is conveyed by text, not color alone, for users with color-vision deficiencies.
- A removable tag's close control has an accessible name identifying which tag it removes ("Remove filter: In progress").
- Purely informational tags (not removable, not clickable) are marked up as plain text/labels, not interactive controls with no real behavior.
Related Components
Badge, Tabs, Group Button.
{
"component": "Tag",
"category": "Data Display",
"summary": "Tag is a small labeled chip that categorizes, filters, or flags a status - like \"In progress\" or an active filter pill - a standalone piece of metadata, unlike Badge, which is meant to overlay or sit attached to another element.",
"whenToUse": [
"A status label - \"In progress\", \"Active\", \"Archived\".",
"A category or filter chip - showing an applied filter, removable with its own close control.",
"A skill/keyword tag or a priority flag - any standalone piece of categorical metadata attached to an item."
],
"whenNotToUse": [
"A count or dot overlaid on another element - use Badge instead - Tag stands alone, Badge attaches to something else.",
"A clickable action rather than a label - use Button - a Tag communicates a static attribute, not an action to take (unless it's specifically a removable filter chip).",
"Long, multi-word descriptive text - keep Tags short; use Description or plain text for longer explanatory content."
],
"bestPractices": [
"Use consistent colors for the same status or category everywhere it appears, so users learn the color-meaning mapping.",
"Keep tag text short - a word or two - so several can sit together without wrapping awkwardly.",
"Only add a remove ('x') control on tags the user can actually remove (like an active filter), not on static status labels."
],
"doAndDont": {
"do": "A one or two-word state name, colour reinforcing the status rather than carrying it alone.",
"dont": "A full sentence inside a chip fights the pill shape it is rendered in and forces the row to wrap. Move detail like this into body text."
},
"accessibility": [
"Status or category meaning is conveyed by text, not color alone, for users with color-vision deficiencies.",
"A removable tag's close control has an accessible name identifying which tag it removes (\"Remove filter: In progress\").",
"Purely informational tags (not removable, not clickable) are marked up as plain text/labels, not interactive controls with no real behavior."
],
"relatedComponents": [
"Badge",
"Tabs",
"Group Button"
]
}