Primitives
Primitive

Meter

Display scalar measurements within a known range with visual indicators

A meter displays a scalar measurement within a known range, with optional thresholds that color the indicator by status. Use it for static readings like disk usage, battery level, or a score; for the changing completion of a task, use Progress instead.

Preview

Storage Usage
x

Installation

Usage

Composition

Examples

Different Sizes

Use size to set the track height and text size.

Small
x
Medium
x
Large
x
ValueDescription
smThin track with extra-small text.
mdThe default track and text.
lgThick track with larger text.

With Labels

Add MeterLabel and MeterValue to caption the meter.

Product Rating
x
Memory Usage
x

With Min and Max

Set min and max to scale the value to a custom range.

Response Time
x
Rating
x

With Optimum Range

Set optimumMin and optimumMax to mark the ideal range with tick markers.

Blood Sugar

Normal range: 4.5-5.5 mmol/L

x

With Thresholds

Set low and high to color the indicator by status as the value crosses each threshold.

Battery Level (higher is better)

Battery
x
Battery
x
Battery
x

CPU Temperature (lower is better)

CPU Temp
x
CPU Temp
x
CPU Temp
x

Body Temperature (middle range is safe)

Body Temp
x
Body Temp
x
Body Temp
x

With Segments

Set segments on MeterTrack to divide the track into discrete blocks.

Setup Progress
x
Segmented with thresholds
x
Battery Level
x

API Reference

The Meter component is built on top of Base UI's Meter. All Base UI props are supported. The documentation below only covers custom props and modified defaults specific to our implementation.

For the complete Base UI API, see the Base UI Meter documentation.

Custom Props

MeterRoot

Prop

MeterTrack

Prop