Meter

Static measurement within a known range — disk usage, battery, CPU load. Uses role='meter' (not progressbar) for correct ARIA semantics. Color shifts automatically when low/high thresholds are set.

Usage

Memory usage 50%

Thresholds

Set low and high to enable semantic color shifts. Values below low render destructive, between them renders warning, and above high renders success.

CPU — Critical 15%
CPU — Elevated 55%
CPU — Healthy 82%

Storage usage

Storage 24 GB of 128 GB used

104 GB available · iCloud Drive

Battery

Battery
18%

Low battery — plug in to charge

Segmented

The segmented variant divides the track into discrete ticks, useful when the data has natural quantization (e.g. signal bars, rating levels).

Signal strength 60%
Disk I/O 85%

API reference

No children — the track and indicator are rendered internally. Use valueText to provide a human-readable label for assistive technology.

PropTypeDescription
numberCurrent measurement. Required. Clamped to [min, max] internally.
numberLower bound of the range.
numberUpper bound of the range.
numberThreshold below which the value is considered sub-optimal (renders bg-destructive).
numberThreshold above which the value is considered optimal (renders bg-success). Values between low and high render bg-warning.
numberIdeal reference point within the range. Passed through to aria context but does not shift color (mirrors HTML <meter> spec).
'default' | 'segmented'Segmented shows discrete tick gaps along the track.
stringHuman-readable aria-valuetext. Defaults to the percentage string, e.g. '50%'.
stringMerged onto the root wrapper via tailwind-merge.
HTMLDivElement | nullTwo-way-bindable element reference.