Live demo
Demo source
Use a status indicator to show the current condition of something, such as "Online", "In progress" or "Failed". It is informational only: for something people navigate to or remove, use a tag; for selectable filters, use a pill.
Anatomy
A green status indicator reading Label with three callouts: 1 marks the pill-shaped container, 2 the check icon and 3 the label.
- Container is a small pill.
- Icon is chosen by
status, so the meaning doesn't rely on colour. - Label (optional) describes the state in a word or two.
Interaction
A status indicator communicates a system-controlled condition or a completed result. It has no click, removal or selection behaviour. Keep it informational even if other content in the same row is interactive. Use a tag for a link or removable label and a pill for an option the user can toggle.
Status and emphasis
status defaults to neutral and emphasis to low. Map the design's
emphasis names to the API as follows:
| Design emphasis | Component setting |
|---|---|
| Low: outline with no fill | emphasis="low" |
| Medium: light fill | emphasis="high" |
The status selects both colour and icon. The design lists possible icon
families; the component uses these fixed icons rather than an icon prop:
| Status | Colour | Rendered icon |
|---|---|---|
success | Green | circle-check |
error | Red | alert-circle |
warning | Yellow | alert-triangle |
information | Blue | info-circle |
neutral | Grey | help |
Always set a label where you can. Without one, the indicator is announced
by its raw status value, such as "warning", which rarely says enough.
Use short state labels such as “Validated”, “In progress” or “Failed”. The mandatory icon and readable label keep the meaning available to people who cannot distinguish the status colours.