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'defaultSelects the visual style variant.
size'sm' | 'md'mdVisual size of the component (e.g. 'sm', 'md', 'lg').
onDismiss() => voidWhen provided, renders a trailing remove button inside the chip
dismissLabelstringRemoveAccessible label for the dismiss button.

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