Playground
Active
Variant
Dot
Variants
Success
Completed, active, healthy. Reuses feedback-success-bg + text-success.
Warning
Needs attention, pending. Reuses feedback-warning-bg + text-warning.
Danger
Failed, blocked, error. Reuses feedback-danger-bg + text-danger.
Neutral
Default, no strong signal. Reuses background/tertiary + text-secondary.
Dot Mode
SuccessWarningDangerNeutral
A smaller footprint than the full pill — reads well inline in a table row or a dense list where the pill's padding would crowd adjacent columns.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | "success" | "warning" | "danger" | "neutral" | "neutral" | Which feedback color pairing to use. |
| dot | boolean | false | Renders a small colored dot instead of a full pill — for compact status in dense contexts like table rows. |
| children | ReactNode | — | Badge label. |
| ...rest | HTMLAttributes<HTMLSpanElement> | — | className, aria-*, and any other native span prop. |
Usage Guidelines
When to use
- Use for compact, at-a-glance status next to a label, in a table cell, or beside a heading (Success/Warning/Danger/Neutral).
When not to use
- Don't put more than a couple words in a Badge — it isn't built for wrapping text.
- Don't use Badge as a clickable control — it's static. Use Button or a link if it needs to be actionable.