AppColorPicker
A colour picker with a saturation and brightness plane, a hue slider (AppSlider), hex and RGB fields, optional swatches and the screen eyedropper where the browser has EyeDropper. The plane is a 2D slider: Left and Right change saturation, Up and Down brightness, Shift for steps of 10, Page Up / Down for brightness by 10, Home / End for no or full saturation; aria-valuetext names the colour ("Dark teal, saturation 72%, brightness 43%"). Drag it with any pointer: the pointer is captured, so the drag keeps going outside the plane. v-model is a hex string. The plane does not mirror in RTL (white stays left, as in every colour tool); the hue slider runs from the end edge, as every native range does.
Install: pnpm add-component AppColorPicker
Basic usage
Drag on the plane, or Tab to its thumb and use the arrows (Shift for 10). update:modelValue fires while it moves; change fires when a drag ends, a key is pressed, a field is committed or a swatch is picked. A hex that is not 3 or 6 digits says so when the field loses focus; Escape puts it back.
Swatches without RGB
Swatches are native radios: one Tab stop, arrows to move. The current one carries a check, not just its colour.
Disabled
API
modelValue(string): The colour as hex (use v-model). Accepts #abc or #aabbcc; emits #AABBCC.label(string): Visible name; names the group.swatches(string[]): Preset colours as hex, offered as a radio group (arrows move between them). Invalid entries and duplicates are dropped.swatchesLabel(string): Legend of the swatch group.showRgb(boolean): Show the Red, Green and Blue fields.eyedropper(boolean): Offer the screen eyedropper. Shown only where window.EyeDropper exists (Chromium); hidden elsewhere.eyedropperLabel(string): Name of the eyedropper button.areaLabel(string): Name of the 2D slider, read before its value.disabled(boolean): Disables every part and dims it.