Meter
Meters are visual representations of a quantity or an achievement. Their progress is determined by user actions, rather than system actions.
Storage space
35%variant
The visual style of the Meter.
variant
size
staticColor
labelPosition
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.
Progress
33%API
| 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). | ||
variant | 'informative'
| 'positive'
| 'notice'
| 'negative' | Default: 'informative'
|
| The visual style of the Meter. | ||
size | 'S'
| 'M'
| 'L'
| 'XL' | Default: 'M'
|
| The size of the Meter. | ||
staticColor | 'white'
| 'black'
| 'auto' | Default: — |
| The static color style to apply. Useful when the button appears over a color background. | ||
styles | StylesProp | Default: — |
Spectrum-defined styles, returned by the style() macro. | ||
formatOptions | Intl.NumberFormatOptions | Default: {style: 'percent'}
|
| The display format of the value label. | ||