The Meter component displays a scalar measurement within a known range, similar to a gauge.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/yogendrarana/craftdotui/llms.txt
Use this file to discover all available pages before exploring further.
Installation
Usage
Components
Meter (Root)
Current value.
Minimum value.
Maximum value.
Optimal value.
Low threshold.
High threshold.
MeterLabel
Label for the meter.MeterTrack
Background track.MeterIndicator
Filled portion indicating the value.MeterValue
Displays the current value as text.Examples
Storage Meter
Battery Level
With Thresholds
The Meter component differs from Progress - use Meter for measurements (like disk usage), and Progress for task completion.
Accessibility
- Built on @base-ui/react Meter primitive
- Proper role=“meter” attribute
- ARIA attributes for value and range
- Screen reader support for value announcements