Badge

Small status label or category indicator

Category: display · WCAG 2.2-AA · label, status, tag

Variants

Sizes

Props

PropTypeDefaultDescription
variant'default' | 'secondary' | 'success' | 'warning' | 'destructive' | 'outline'defaultSelects the visual style variant.
size'sm' | 'md'mdVisual size of the component (e.g. 'sm', 'md', 'lg').

Design tokens

When to use

When not to use

How to build an accessible Badge in React →

Examples

Default

<Badge>New</Badge>

Success

<Badge variant="success">Active</Badge>

Destructive

<Badge variant="destructive">Deprecated</Badge>

Related components

← Back to docs