Badge
A short label for the state of a record. The intent carries the meaning, so a column of badges can be read at a glance without reading the words.
Reach for it
A status or a category, in a word.
Not for
A count on its own, or anything the user can click.
Intents
Pick the intent from what the state means, not from what suits the page. Using one intent for every state leaves the colour saying nothing, and the reader back to reading each row.
neutralbrandsuccesswarningdangerinfo
API reference
Badge
| Prop | Type | Default | Description |
|---|---|---|---|
| intent | 'neutral' | 'brand' | 'success' | 'warning' | 'danger' | 'info' | neutral |
Also takes the standard attributes of a span, minus className and style.