@adobe/spectrum-tokens
Version:
Design tokens for Spectrum, Adobe's design system
51 lines (50 loc) • 1.37 kB
JSON
{
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
"$id": "https://opensource.adobe.com/spectrum-tokens/schemas/components/progress-bar.json",
"title": "Progress bar",
"description": "Progress bars show the progression of a system operation: downloading, uploading, processing, etc., in a visual way. They can represent either determinate or indeterminate progress.",
"meta": {
"category": "status",
"documentationUrl": "https://spectrum.adobe.com/page/progress-bar/"
},
"type": "object",
"properties": {
"variant": {
"type": "string",
"enum": ["default", "over background"],
"default": "default"
},
"label": {
"type": "string"
},
"value": {
"type": "number",
"description": "Not applicable when indeterminate."
},
"minValue": {
"type": "number",
"default": 0,
"description": "Not applicable when indeterminate."
},
"maxValue": {
"type": "number",
"default": 1,
"description": "Not applicable when indeterminate."
},
"valueLabel": {
"type": "string"
},
"width": {
"type": "number"
},
"size": {
"type": "string",
"enum": ["s", "m", "l", "xl"],
"default": "m"
},
"isIndeterminate": {
"type": "boolean",
"default": false
}
}
}