Usage
Badge surfaces concise status, counts, and categories beside titles, in table cells, or on map markers. Semantic colors communicate operational states operators must interpret quickly, so decorative accents should not hijack error or success hues. Dispatch uses badges widely in queue columns and incident rows; the rule that makes them work is vocabulary discipline—the same word means the same thing across modules.
Closed
Pill with dismiss semantics.Callout or body text.Button.Small in dense tables; Regular default; Large sparingly for focal indicators.Error, Warning, Success, and Info for meaningful operational states; Default and accent variants for neutral tagging.icon is set with no children, the badge is square. Pair with aria-label so meaning is not color- or glyph-only; the component shows that value in a tooltip on hover.formatMessage; parallel phrasing within a column.aria-label that names the state ("Live", "Shared"). That label doubles as the tooltip content.Do
Don't
Success for informational labels that aren't positive outcomes.Contrast for text and icons on tinted backgrounds holds in both themes; screen readers hear the full label, not only the color name. See Accessibility for the full contract.