A meter represents a quantity within a known range, or a fractional value.
Vanilla CSS theme
This sets the
--tint CSS variable used by the Vanilla CSS examples.Theme
Storage25%
formatOptions
The display format of the value label.
formatOptions
Value
By default, the value prop is a percentage between 0 and 100. Use the minValue, and maxValue props to set a custom value scale.
Data usage250 MB
API
<Meter>
<Label />
</Meter>
Meter
A meter represents a quantity within a known range, or a fractional value.
| Name | Type | Default |
|---|---|---|
valueLabel | ReactNode | Default: — |
| The content to display as the value's label (e.g. 1 of 4). | ||
value | number | Default: 0
|
| The current value (controlled). | ||
children | ChildrenOrFunction | Default: — |
| The children of the component. A function may be provided to alter the children based on component state. | ||
formatOptions | Intl.NumberFormatOptions | Default: {style: 'percent'}
|
| The display format of the value label. | ||
Default className: react-aria-Meter
| Render Prop | CSS Selector |
|---|---|
percentage | CSS Selector: — |
| The value as a percentage between the minimum and maximum. | |
valueText | CSS Selector: [aria-valuetext]
|
| A formatted version of the value. | |