Tag

Compact chip for labeling, categorizing, or filtering content

Category: display · WCAG 2.2-AA · chip, label, filter, category

Variants

Sizes

Props

PropTypeDefaultDescription
variant'default' | 'info' | 'success' | 'warning' | 'error'defaultSeverity tone. Accepts the catalog-wide `Tone` vocabulary (`neutral | info | success | warning | danger`) plus Tag's historical spellings (`default` → neutral, `error`/`destructive` → danger).
size'sm' | 'md'mdVisual size of the component (e.g. 'sm', 'md', 'lg').
onDismiss() => void—When provided, renders a trailing remove button inside the chip
dismissLabelstringRemoveAccessible label for the dismiss button.
childrenReactNode—Tag label

Design tokens

When to use

When not to use

How to build an accessible Tag in React →

Examples

Default

<Tag>Design</Tag>

Success

<Tag variant="success">Approved</Tag>

Dismissible

Renders a trailing remove button labeled by dismissLabel

<Tag onDismiss={() => removeFilter()}>Filter: Active</Tag>

Related components

← Back to docs