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
Installation
Usage
Composition
Examples
Different Sizes
Use size to set the track height and text size.
| Value | Description |
|---|---|
sm | Thin track with extra-small text. |
md | The default track and text. |
lg | Thick track with larger text. |
With Labels
Add MeterLabel and MeterValue to caption the meter.
With Min and Max
Set min and max to scale the value to a custom range.
With Optimum Range
Set optimumMin and optimumMax to mark the ideal range with tick markers.
Normal range: 4.5-5.5 mmol/L
With Thresholds
Set low and high to color the indicator by status as the value crosses each threshold.
Battery Level (higher is better)
CPU Temperature (lower is better)
Body Temperature (middle range is safe)
With Segments
Set segments on MeterTrack to divide the track into discrete blocks.
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.