Elements

Components

Meter

A measure in the world, not a task in flight: how much of the toner remains, how full the cistern stands. The level chooses the pigment — primary while all is well, the fixed semantic pigments at the thresholds.

#Basic usage

meter/levels Vue React
Toner remaining62%

#Props

#MeterLabel

A styled part — no props of its own; it takes the anatomy's shared styling.

#MeterValueText

A styled part — no props of its own; it takes the anatomy's shared styling.

#MeterTrack

A styled part — no props of its own; it takes the anatomy's shared styling.

#MeterRoot

PropTypeDefaultDescription
valueNumberThe measured value — clamped between min and max.
minNumber0—
maxNumber100—
levelString as PropType<"normal" | "success" | "warning" | "danger">"normal"The pigment the ink rides: primary unless a threshold is crossed.
labelStringundefined—
sizeString as PropType<"sm" | "md" | "lg">"md"One rung of the groove ladder — the track's thickness.