Two channels of a color chosen at once on a two-dimensional area, as two APG sliders (one native range input per axis), in each framework.
Choose two channels of a color (saturation and brightness, by default) by dragging a thumb over
an area, or with the keyboard. The APG has no two-dimensional slider: the area is two
APG sliders,
one native <input type="range"> per axis, visually hidden in the thumb, so a screen reader
meets two named sliders with their values. Its value is a color.
Value: a Color or a string; changes report a Color in the area's space.
Channels: xChannel and yChannel, two channels of one space (no alpha); by default the
space's (rgb: red and green; hsl: saturation and lightness; hsb: saturation and brightness).
Keyboard: one tab stop. Either Input takes every key: the horizontal arrows move x
(swapped in RTL), the vertical arrows y, Shift by the large step, Page Up / Page Down y by
the large step, Home / End x to its ends. The focus follows the axis a key moved, so a screen
reader announces the slider that changed.
Pointer: a press moves both axes to the point (track-press), focuses the tab-stop Input
and drags with pointer capture (drag, data-dragging), clamped to the area. x runs from the
inline start, y from the bottom.
Background: the Root sets --color-area-background and
--color-area-background-blend-mode (two gradient layers that give the exact color at each
point); the Thumb --color-area-thumb-color.
Forms: each Input's name submits its channel's value (a native range input).
Names: the app names the group (aria-label) and each Input; no channel name of its own.
Every part also takes what the primitive contract gives:
render (Vue: as and the render slot), a class and a style, a ref, and any attribute, which
it forwards. The names below are React's; Vue binds them the same way (v-model:value,
@value-commit), and Angular as inputs and outputs ([(value)], (valueCommit)).