Color Area
Two-dimensional area for picking saturation and value of a colour.
Attributes
| Name | Type | Default | Description |
|---|---|---|---|
hue | number | 0 | Hue of the colour plane in degrees. |
saturation | number | 1 | Selected saturation from 0 to 1. |
value | number | 1 | Selected brightness value from 0 to 1. |
Events
| Name | Type | Description |
|---|---|---|
change | CustomEvent<{ saturation: number; value: number }> | Fired while the selected saturation or value changes. |
CSS custom properties
Grouped by semantic target and state from --c2-<component>__<target>__<state>--<property>. Click a group to collapse it; click a name to copy it.
| Name | Type | Default | Description |
|---|---|---|---|
--c2-color-area--width | pixel | 240px | |
--c2-color-area--height | pixel | 240px | |
--c2-color-area--border-top-left-radius | border-radius | — | |
--c2-color-area--border-top-right-radius | border-radius | — | |
--c2-color-area--border-bottom-left-radius | border-radius | — | |
--c2-color-area--border-bottom-right-radius | border-radius | — | |
--c2-color-area__color-handle--size | pixel | 12px | |