Components
Badge
A short status label scanned before it is read: application state, a flag, an archived record. It trims a long label with an ellipsis instead of wrapping.
For reviewPublishedBudget approvedDelinquentTrackingArchived
Usage
A status label scanned before the row is read.
Do and don't
- Do. Keep the text label and map your own status enum to a color.
- Don't. Use color alone, or put long sentences in a badge.
Props
color;accent gray red orange amber yellow lime green emerald teal cyan blue indigo violet purple fuchsia pink rose. Theaccentvalue follows the active accent token.variant="solid" | "dot" | "ghost"; filled tint, outlined with a leading dot, or text only.size="default" | "compact"; 24px or 20px tall. Omit to follow the surrounding size context.
Related
Composes with Table for status columns and Card for record tiles. Status colors are semantic; see Colors before adding a new hue.