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

MeterStack

MeterStack is a compound component for segmented meter displays.

Root Props

PropTypeDefault
sizeMeterStackSize'md'
Visual size of the meter component. Typically maps to predefined size tokens in a design system.
maxnumber1
Maximum possible value of the meter. Default is 100.
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.
fullWidthboolean—
Whether the meter should expand to fill the width with its container.

Also accepts all <div> attributes.

Child Parts

  • MeterStackSegment: one proportional segment.

MeterStackSegment

PropTypeDefault
valuenumber—
The numeric value this partial item visually represents. For example, a segment in a stacked meter.

Also accepts all <div> attributes.

Types

  • MeterStackProps
  • MeterStackSegmentProps
  • MeterStackSize

State Model

  • MeterStack itself is display-only and has no controlled interaction state.
  • The root provides min and max context to each segment for ARIA meter semantics.