Design System
Data display

Badge

Label, categorise or flag the status of an item with a compact, non-interactive marker.

Tones

default · secondary · outline · success · warning · info · destructive · danger

destructive and danger carry the same meaning at different volumes: destructive is a solid fill for standalone emphasis; danger is its subtle counterpart for dense tables and lists, matching the other subtle tones (success, warning, info).

DefaultSecondaryOutlineSuccessWarningInfoDestructiveDanger

Status

Reach for the tonal variants to convey the state of a claim, request or member.

ApprovedPending reviewIn progressRejectedOverdue

Inline with text

Sit a badge alongside body copy to annotate a heading or row without breaking the flow.

Claim HM-10641 Settled was processed on 21 July 2026.

Counts

Pair a badge with a label to surface a running total or unread count.

Open claims 12

Alerts 3

Structure

The tokens behind the marker.

PropertyValue
HeightContent-sized — 8px × 2px padding (px-2 py-0.5)
Typography12px / Inter 600 (text-xs font-semibold)
Radius--radius-sm
Solid fills--primary · --secondary · --destructive, with foreground ink
Subtle fills--success-subtle / --warning-subtle / --info-subtle / --destructive-subtle, with matching *-text ink
Outline1px --border, --foreground text
IconsGlyphs scale to 1.2em with a 4px gap

Best practices

Do

  • Let the label carry the meaning — "Approved", not "OK"; the tone only reinforces it.
  • Keep labels to one or two words.
  • Use the subtle tones in dense tables and lists; save the solid fills for standalone emphasis.

Don't

  • Make a badge interactive — it is a <span>. A clickable "badge" is a Button or a link.
  • Rely on colour alone to distinguish states — the fill is invisible to a screen reader.
  • Scatter more than one solid-tone badge per row; the emphasis cancels out.

Accessibility & keyboard

  • Renders as a plain <span>: announced as inline text, in reading order, with no role of its own.
  • The tone is carried by colour only, so the label text must state the status on its own.
  • Keyboard: none — badges are non-interactive and never receive focus.

Props

Auto-generated from BadgeProps — the tone list stays in sync with the source.

PropTypeDefaultDescription
variant"default" | "secondary" | "outline" | "success" | "warning" | "info" | "destructive" | "danger" | null | undefined——

On this page