Gauge
atomsA compact vertical level indicator (continuous fill or lit segments) whose tone follows warn/danger thresholds; renders as a meter, button or link.
Fleet list with quota gauges
value is a percentage; the tone flips to warn at 70 and danger at 90 by default; label is the accessible name.
api-gateway eu-west-1 cpu mem
worker-02 eu-west-1 cpu mem
cache-01 us-east-1 cpu mem
postgres-primary eu-west-1 cpu mem
media-transcode ap-northeast-1 cpu mem
search-index us-east-1 cpu mem
Variants, segments and sizes
variant="continuous" fills smoothly; "segments" lights bars bottom-up (segments sets how many); width/height resize the box.
Thresholds, forced tones and corners
warnAt / dangerAt move the colour steps; tone pins the colour; corner slots an emoji or icon; as="button" or "a" makes it interactive.
Edge values
Regression fixture: 0, exactly at each threshold, 100, values past the range and NaN all clamp to 0–100.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
value required | number | — | |
variant | 'continuous' | 'segments' | 'continuous' | |
segments | number | 3 | `segments` variant only: number of stacked bars, lit bottom-up. |
tone | GaugeTone | — | Forces the fill colour; otherwise derived from `warnAt` / `dangerAt`. |
warnAt | number | 70 | |
dangerAt | number | 90 | |
label | string | — | |
as | 'div' | 'a' | 'button' | 'div' | |
width | string | — | |
height | string | — | |
corner | Snippet | — | |
class | string | '' | |
style | string | '' | |
href | string | — |