Feedback
StatusDot
Coloured dot with a text label for a state such as Available, Running or Failed.
- Experimental
- No keyboard interaction
- Screen reader not tested yet
Playground
Change the props. The controls come from the documented props.
Available
<StatusDot label="Available" />Usage
When to use
Use a status dot for the state of an item in a table or list, where many rows each show one state: “Available”, “Running”, “Failed”.
When not to use
- Without a label: the dot is decoration, the label is the state.
- For a state that needs attention: use InlineMessage or Banner.
How it works
An 8px dot in the tone colour, hidden from screen readers, followed by the label in small text. Tones are positive, caution, info, danger and neutral.
Content guidelines
Labels are one or two words, the same words everywhere the state appears.
Do and don’t
Do
- Use it in tables and lists where many rows show a state.
Don’t
- Don't use the dot without the label.
Anatomy
The parts of the component and what each one does, as in the playground above.
- dot8px circle in the tone colour, decorative.
- labelSmall text in text.primary.
Examples
Type-checked, and the same code goes into the AI manifest. Import: import { StatusDot } from "@/ds";
Tones
AvailableBooked until MarchIn reviewFailedDraft
Props
Checked against the component's TypeScript type on every build.
| Name | Type | Default | Description |
|---|---|---|---|
| tone | "neutral" | "positive" | "caution" | "info" | "danger" | "neutral" | Colour of the dot. |
| label (required) | string | – | Visible state; carries the meaning. |
Tokens used
Derived from the utility classes in the component's source. Copy a class with one click.
| Token | Tier | Value | Utility |
|---|---|---|---|
| spacing.2 | semantic | 8px | |
| status.caution.fg | semantic | #7A5D14 | |
| status.danger.fg | semantic | #B4342A | |
| status.info.fg | semantic | #12566E | |
| status.positive.fg | semantic | #0F6A4E | |
| text.primary | semantic | #0A0A0B | |
| text.secondary | semantic | #555555 | |
| type.small.size | semantic | 14px |
Accessibility
What is checked automatically on every build, and what a person has tested. Nothing is marked as tested unless it was.
| Check | How | Status |
|---|---|---|
| axe-core rules | Automated on every npm run check, at desktop and mobile width | Runs on every build |
| Keyboard | Automated Playwright test (scripts/keyboard.mjs) | Not applicable |
| Screen reader | Manual | Not tested yet |
Semantics and focus
- The dot is aria-hidden; the label is the state.
- Dot colours meet 3:1 against page and card (non-text contrast).