Badge

A badge is a small UI indicator for numbers, statuses, and labels on other components.

Choose the right pattern

Pattern Duration Use when
Badge Persistent Status label, count on nav item, “New” on a menu entry
Toast / snackbar Transient Action completed or failed; auto-dismiss after a few seconds
Inline error Until fixed Field validation tied to a specific input

Use and purpose

Variants

Variant Usage
Primary Default status or count
Secondary Neutral or de-emphasized label

Examples

New 3 Beta Draft

Accessibility

Screen readers may read badge text as random extra words if not paired with meaningful context. Do not rely on badge styling alone — ensure the parent control or label conveys the full meaning.