Meter
moleculesA labelled, read-only level with its readout: a quota, disk or budget bar with markers, warn and danger thresholds, a caption and trailing actions. Progress is the bare bar; Gauge is the tiny inline dial; CapBar adds a draggable cap.
Storage and budget
value and max with a custom format, toneAt thresholds, markers with labels, a caption and an actions snippet.
NVMe pool 742 / 960 GB
harbor, jellyfin, gitea and langfuse share this pool
Monthly budget $184 of $250
resets on the 1st
Context window 128k / 200k tokens
Sizes and tones
size="sm" | "md" | "lg"; tone forces a colour, toneAt derives it from the percentage; the default format is a percentage.
Small 35%
Medium 55%
Large 75%
tone neutral 60%
tone accent 60%
tone info 60%
tone ok 60%
tone warn 60%
tone danger 60%
toneAt 50 / 80 at 45 45%
toneAt 50 / 80 at 65 65%
toneAt 50 / 80 at 92 92%
Empty, full, over and long labels
value 0, value at max, value past max (clamped by the bar, honest in the readout), a caption snippet and a label that truncates.
Nothing used yet 0%
Full 100%
Over quota 118% of 100%
18% over the cap
A very long meter label that should not push the readout off the row on a phone 42%
Meter, Progress, Gauge and CapBar
the same 62% as a Meter (label + readout), a bare Progress, an inline Gauge and a CapBar with a draggable cap.
Meter 62%
for a labelled level with thresholds
Props
| Prop | Type | Default | Description |
|---|---|---|---|
label required | string | — | |
value required | number | — | |
max | number | 100 | |
format | (value: number, max: number) => string | (v: number, m: number) => `${Math.round((v / m) * 100)}%` | Trailing readout; defaults to a percentage. |
caption | string | Snippet | — | |
markers | { at: number; label?: string; tone?: Tone }[] | — | |
toneAt | { warn?: number; danger?: number } | — | |
tone | Tone | — | |
size | ControlSize | 'md' | |
actions | Snippet | — | Inline controls after the readout (edit cap, bypass…). |
class | string | '' | |
style | string | '' |