Meter
Meters are visual representations of a quantity or an achievement. Their progress is determined by user actions, rather than system actions.
| Property | Values | Default value | Required |
|---|---|---|---|
| variant | informative / positive / notice / negative | informative | |
| label | text | - | |
| hide label | yes / no | no | |
| value label | text | - | |
| width | yes / no | no | no |
| size | s / m / l / xl | m | |
| value | yes / no | no | no |
| help text | text | - |
{
"slug": "meter",
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/component.json",
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/components/meter.json",
"title": "Meter",
"description": "Meters are visual representations of a quantity or an achievement. Their progress is determined by user actions, rather than system actions.",
"meta": {
"category": "status",
"documentationUrl": "https://spectrum.adobe.com/page/meter/"
},
"type": "object",
"properties": {
"variant": {
"type": "string",
"enum": [
"informative",
"positive",
"notice",
"negative"
],
"default": "informative"
},
"label": {
"type": "string"
},
"hideLabel": {
"type": "boolean",
"default": false
},
"valueLabel": {
"type": "string"
},
"width": {
"type": "number"
},
"size": {
"type": "string",
"enum": [
"s",
"m",
"l",
"xl"
],
"default": "m"
},
"value": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"helpText": {
"type": "string"
}
}
}