# KptKnob (kpt-knob) A knob - pick a value along an SVG arc, with the mouse (drag) or the arrow keys. Signal Forms. Import: `import { KptKnob } from '@konce-pt/angular';` ## Inputs / model - `value`: model (or `formField`) - `min`/`max`: number | undefined (0/100); `step`: number. Under `[formField]` the bounds come from `min()`/`max()` in `form()` - `[min]`/`[max]` next to `[formField]` is a compilation error (FORM_FIELD_UNSUPPORTED_BINDING); bind them directly only together with `[(value)]`. - `size`: px (default 96); `stroke`: px (10); `suffix`: string - `showValue`: boolean (default true) - `disabled`/`readonly`/`invalid`/`touched`: boolean; `touch`: output. `readonly` (also from `readonly()` in the schema) keeps the knob focusable but ignores the pointer and the keys (`aria-readonly`) ## Motion A jump in value - an arrow key, Home/End, a click on the arc, a change from outside - moves the arc and counts the number up or down over ~220 ms (ease-out). Dragging follows the pointer with no delay, so it never feels laggy. `prefers-reduced-motion: reduce` turns the animation off. `aria-valuenow` always carries the target value, never an in-between frame. Dragging does not select the number or the arc. ## Accessibility `role="slider"` + aria-valuemin/max/now; arrow keys, PageUp/PageDown (ten steps), Home/End. Values sit on the grid `min + k,step` for both the pointer and the keys - with `min=1, step=2` that is 1, 3, 5... ## Example ## Label and description `id` goes to the focusable element - the host never carries it; without one it is generated. A `div` with a role is not named by `label[for]`, so inside `kpt-form-field` it gets `aria-labelledby` pointing at the wrapper's label (unless `ariaLabel` is set), and the hint or error is added to `aria-describedby`. No `controlId` needed. New: `id`, `ariaLabel`; `aria-valuetext` includes `suffix` ("40%"), and a disabled knob leaves the Tab order. Use `ariaLabel`, not `aria-label` on the host - that one lands on the wrapper. ## Pointer While held (from press to release) the knob reacts: the cursor becomes `grabbing`, the dial grows slightly, the value arc glows stronger and the number in the middle scales up. On hover the arc glows softly. All of it is CSS on the `is-grabbing` class and drops out under "reduce motion". ## Tokens The background arc `--kpt-color-border`; the value `--kpt-color-primary`; text `--kpt-color-on-surface`.