Spectrum Components API

Schema version: 6.0.0

Meter

Meters are visual representations of a quantity or an achievement. Their progress is determined by user actions, rather than system actions.

PropertyValuesDefault valueRequired
variant
informative / positive / notice / negative
informative
label
text
-
hide label
yes / no
no
value label
text
-
width
yes / no
nono
size
s / m / l / xl
m
value
yes / no
nono
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"
    }
  }
}
← Back to home