Installation
- Tab Title
- Tab Title
Usage
Meter vs Progress
Meter displays a scalar measurement within a known range (e.g., disk usage, battery level, temperature). Progress shows task completion status that changes over time (e.g., file upload, installation). Use Meter when:- Showing a fixed measurement at a point in time
- Value represents a gauge or level
- Min/max range is meaningful (not just 0-100%)
- Indicating task completion
- Value will increase to 100%
- Showing loading or processing state
Examples
Sizes
Two sizes available:s (default) and m.
Tones
Four semantic tones for different measurement states.With Label
Add a descriptive label for the measurement.With Value Display
Show the current value alongside the meter.Custom Range
Meter supports any numeric range, not just 0-100.Dynamic Tone
Change tone based on value thresholds.API Reference
Meter.Root
Current meter value within the min/max range.
Minimum value of the range.
Maximum value of the range.
Optimal value within the range. Used by assistive technology.
Lower boundary of the low range.
Lower boundary of the high range.
Semantic color tone:
default, success, warning, danger.Size of the meter:
s, m.Meter.Label
Accessible label for the meter. Automatically associated with the meter element.Label text.
Meter.Track
Background track for the meter indicator.Meter.Indicator
Filled portion showing the current value. Width reflects value position within min/max range.Meter.Value
Displays the current value as text.Optional render function to customize value display. Defaults to "".
Accessibility
- Uses Base UI
Meterprimitive with proper ARIA attributes - Semantic
<meter>element withrole="meter" Meter.Labelautomatically associates viaaria-labelledbyaria-valuenow,aria-valuemin,aria-valuemaxautomatically managedoptimum,low, andhighvalues exposed to assistive technology- Screen readers announce value and range context
Design Tokens
Meter uses design tokens for consistent styling:- Spacing:
--space-4,--space-6,--space-8 - Border radius:
--radius-maxfor rounded ends - Colors:
--color-surface-interactive-default(track),--color-content-*(indicator) - Typography:
--font-size-s,--line-height-s,--font-weight-medium - Animation: 300ms ease-out transition