Components
← All components

Meter

stimeo--meter

Syncs a meter's ARIA value attributes and segments it by threshold.

  • Meter

The stimeo--meter controller drives the WAI-ARIA meter role — a point-in-time scalar within a known range (disk usage, battery, score), distinct from Progress. It keeps aria-valuenow / min / max in sync, exposes the fraction as --stimeo-meter-ratio (0–1), and, when low/high thresholds are present, classifies the value into a low/medium/high segment on data-state. Because state must not be conveyed by color alone, a valueText template feeds aria-valuetext so the segment is also text. setValue accepts an amount action param or a meter:set event, and dispatches stimeo--meter:change. Behavior only — the look is owned by this Playground.

running