# KptColorPicker (kpt-color-picker) Color selection (swatch + hex + presets) on Signal Forms. The value is a hex string, e.g. '#3b82f6'. Import: `import { KptColorPicker } from '@konce-pt/angular';` ## Inputs / model - `value`: model (or `formField`) - the hex color - `presets`: string[] - the quick-pick palette (8 colors by default) - `disabled`/`invalid`/`touched`: boolean; `touch`: output ## Example color = signal('#3b82f6'); ## Screen reader and keyboard `presets` accepts codes or `{ value, label }` (the `KptColorPreset` type): the label names the swatch, because a hex code says little to a screen reader; the default palette is named from i18n (`colorPicker.red`...). The active swatch has `aria-pressed`. The hex field changes the value only on a full `#rrggbb` code (a missing `#` is added); an incomplete code stays visible with `aria-invalid`. ## Label and description `id` goes to the native field - the host never carries it; without one it is generated. Inside `kpt-form-field` the control links itself: the wrapper's `label[for]` points at it and the hint or error is added to `aria-describedby`, so `controlId` is not needed. Without a wrapper, name it with `ariaLabel`. `id` and the label go to the hex field; the native colour well is named "Pick a colour" (`colorPicker.picker`), and the hex field falls back to "Hex code" (`colorPicker.hex`). ## Tokens The border `--kpt-form-field-border`; the active preset `--kpt-color-primary`. ## Read-only and required `readonly` blocks the picker, the code field and the presets; `required` sets `aria-required` on the code field. Picking a preset or a colour counts as a touch. The code field takes `fff`, `#fff` and `#ffffff` and is not rewritten while typing, so the caret does not jump.