# KptSlider (kpt-slider) A value slider on Signal Forms. Import: `import { KptSlider } from '@konce-pt/angular';` ## Inputs - `value`: model - in `range` mode a `[min, max]` pair, otherwise a single number - `range`: boolean - two handles (a range); `min`/`max`: number (per FormValueControl); `step`: number - Under `[formField]` do NOT bind the bounds - they are declared by `min()`/`max()` in `form()`, and `FormField` injects them into the `min`/`max` inputs itself; `[min]`/`[max]` next to `[formField]` is a compilation error (FORM_FIELD_UNSUPPORTED_BINDING). The `range` mode (a `[number, number]` value) has no counterpart among the validators (`min()`/`max()` only accept numeric fields), so it is paired with `[(value)]`. - `showValue`: boolean; `disabled`/`invalid`/`touched`; `touch` ## Example ## Notes - The `range` mode uses two stacked `input[type=range]` elements; `pointer-events` are active only on the handles, and a press on the track moves the nearest handle (see "Pointer"). - The handles cannot cross - the lower one is clamped to the upper one and vice versa. ## Screen reader and keyboard `suffix`: string (" zł", "%", " km") - shown after the value and put into `aria-valuetext` ("40 zł"), so the unit is read too. `aria-invalid` after touch. ## 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`. With `range` the thumbs are named "Minimum"/"Maximum" from i18n (`slider.min`/`slider.max`, previously hard-coded and mixed-language); inside `kpt-form-field` each thumb reads "