Skip to content
v2.5.0
English
Русский
Documentation

Meter

Meter shows a bounded quantitative value, typically without the temporal progress semantics of a progress bar.

Root Props

PropTypeDefault
sizeMeterSize'md'
Visual size of the meter component. Typically maps to predefined size tokens in a design system.
variantMeterVariant'primary'
Visual variant of the meter (e.g., for styling themes).
maxnumber1
Maximum possible value of the meter. Default is 1.
minnumber0
Minimum possible value of the meter. Default is 0.
valuerequirednumber—
The current numeric value displayed by the meter. Required. Clamped between min and max.
valueTextstring—
Visually hidden accessible label for screen readers, describing the current value (e.g., "60% fuel").
fullWidthboolean—
Whether the meter should expand to fill the width with its container.
optimumnumber—
The "optimal" value for the meter. Used to determine which region (low, high, optimum) is preferred.
lownumber—
The lower threshold for suboptimal values. If the value is below this, it may be considered "bad".
highnumber—
The upper threshold for suboptimal values. If the value is above this, it may be considered "bad" (if optimum is low).

Also accepts all <div> attributes.

Child Parts

  • MeterTrack: visible measured-fill track.

MeterTrack

Also accepts all <div> attributes.

Types

  • MeterProps
  • MeterTrackProps
  • MeterSize
  • MeterVariant

State Model

  • Meter is always value-driven rather than indeterminate.
  • Threshold props can change semantic state from neutral to good, warn, or bad.