Components
Dot
Status indicator with a colored dot in seven tones and an optional label.
import { Dot } from "@openperf/deft";
<Dot.Root tone="success">Enabled</Dot.Root>;When to use
| Need | Component |
|---|---|
| Status the system reports and that changes in time | Dot |
| Fixed flag on an item, such as "Demo" or "Expired" | Badge |
| Value from the data | Tag |
| Option the user switches on and off | Chip |
Tones
| Tone | Label color |
|---|---|
fatal, error, warning, accent | Tone color |
info, success | Secondary |
debug | Muted |
Only problem tones and accent color the label, so normal states stay quiet in a table. The dot is 6px at every size.
Without a label
<Dot.Root aria-label="Failed" tone="error" />A dot with aria-label and no children is announced as an image. Without either it is silent, so always label a bare dot.
API
Prop
Type