Installation
- CLI
- Manual
Usage
Examples
With Label
Add a descriptive label to the meter.With Value Display
Show the current value numerically.Custom Range
Define custom min and max values.Optimum and Thresholds
Define optimal value and thresholds for semantic states.Storage Example
Display storage usage with formatted values.Multiple Meters
Compare multiple metrics.API Reference
Meter
Based on Base UI Meter component.Current value of the meter.
Minimum value.
Maximum value.
Optimal value within the range.
Upper bound of the low range.
Lower bound of the high range.
Additional CSS classes.
Meter.Track
The track container for the meter indicator.Additional CSS classes.
Meter.Indicator
The visual indicator showing the current value.Additional CSS classes.
Meter.Label
Descriptive label for the meter.Additional CSS classes.
Meter.Value
Displays the current meter value.Additional CSS classes.
Meter vs Progress
Use Meter when:- Measuring a static or current value (disk usage, rating)
- The value doesn’t change over time
- You’re showing a gauge or level
- Tracking completion of a task
- The value changes over time toward completion
- You’re showing upload/download progress
Accessibility
- Uses
role="meter"for proper semantics aria-valuemin,aria-valuemax, andaria-valuenoware set automaticallyaria-valuetextprovides formatted value to screen readers- Threshold states (optimum, low, high) are exposed to assistive technology
- Always include a visible label
Best Practices
- Use meters for static measurements, not task progress
- Always provide a descriptive label
- Show numerical value when precision matters
- Use optimum/low/high for semantic meaning
- Consider color coding for different value ranges
- Format values appropriately (percentages, units, etc.)
- Don’t use meters for time-based progress