@adobe/spectrum-tokens
Version:
Design tokens for Spectrum, Adobe's design system
54 lines (53 loc) • 1.26 kB
JSON
{
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
"$id": "https://opensource.adobe.com/spectrum-tokens/schemas/components/checkbox-group.json",
"title": "Checkbox group",
"description": "A checkbox group is a grouping of checkboxes that are related to each other.",
"meta": {
"category": "inputs",
"documentationUrl": "https://spectrum.adobe.com/page/checkbox-group/"
},
"type": "object",
"properties": {
"label": {
"type": "string"
},
"labelPosition": {
"type": "string",
"enum": ["top", "side"],
"default": "top"
},
"necessityIndicator": {
"type": "string",
"enum": ["text", "icon"],
"default": "icon"
},
"isRequired": {
"type": "boolean",
"default": false
},
"orientation": {
"type": "string",
"enum": ["horizontal", "vertical"],
"default": "vertical"
},
"isError": {
"type": "boolean",
"default": false
},
"isDisabled": {
"type": "boolean",
"default": false
},
"isReadOnly": {
"type": "boolean",
"default": false
},
"description": {
"type": "string"
},
"errorMessage": {
"type": "string"
}
}
}