Color area
A color area allows users to visually select two properties of a color simultaneously. It's commonly used together with a color slider or color wheel.
| Property | Values | Default value | Required |
|---|---|---|---|
| background | text This will vary depending on implementation. | - | |
| x-value | yes / no | no | no |
| x-min value | yes / no | no | no |
| x-max value | yes / no | no | no |
| y-value | yes / no | no | no |
| y-min value | yes / no | no | no |
| y-max value | yes / no | no | no |
| step | yes / no | no | no |
| width | yes / no | no | no |
| height | yes / no | no | no |
| is disabled | yes / no | no | |
| state | default / hover / down / keyboard focus | default |
{
"slug": "color-area",
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/component.json",
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/components/color-area.json",
"title": "Color area",
"description": "A color area allows users to visually select two properties of a color simultaneously. It's commonly used together with a color slider or color wheel.",
"meta": {
"category": "inputs",
"documentationUrl": "https://spectrum.adobe.com/page/color-area/"
},
"type": "object",
"properties": {
"background": {
"type": "string",
"description": "This will vary depending on implementation."
},
"x-value": {
"type": "number",
"description": "Number (from x-minValue to x-maxValue)"
},
"x-minValue": {
"type": "number",
"default": 0
},
"x-maxValue": {
"type": "number",
"default": 100
},
"y-value": {
"type": "number",
"description": "Number (from y-minValue to y-maxValue)"
},
"y-minValue": {
"type": "number",
"default": 0
},
"y-maxValue": {
"type": "number",
"default": 100
},
"step": {
"type": "number",
"default": 1
},
"width": {
"type": "number",
"default": 192,
"description": "units: px"
},
"height": {
"type": "number",
"default": 192,
"description": "units: px"
},
"isDisabled": {
"type": "boolean",
"default": false
},
"state": {
"type": "string",
"enum": [
"default",
"hover",
"down",
"keyboard focus"
],
"default": "default"
}
}
}