# KptListbox (kpt-listbox) A selection list (listbox) on Signal Forms. Single or multiple selection, an optional filter. Value: `T` (single) or `T[]` (multiple). Import: `import { KptListbox } from '@konce-pt/angular';` ## Inputs / model - `value`: model (or `formField`) - `options`: KptOption[] - { label, value, disabled? } - `multiple`: boolean; `filter`: boolean (a search field) - `id`/`ariaLabel`: string|null; `required`: boolean - `disabled`/`invalid`/`touched`: boolean; `touch`: output (blur of the list) ## Example ## Keyboard The WAI-ARIA listbox pattern: the list is one Tab stop and the active option is announced through `aria-activedescendant`. `ArrowUp`/`ArrowDown`, `Home`/`End` and `PageUp`/`PageDown` move the active option, skipping disabled ones (no wrapping); typing letters jumps to the next match, diacritics ignored; `Space`/`Enter` picks; in `multiple` mode `Ctrl`/`Cmd`+`A` selects every visible option (again - clears them). The filter field sits before the list (outside the `listbox`) and `ArrowDown` moves focus from it into the list; the filter itself ignores diacritics ("lodz" finds "Łódź"). ## Label and description `id` goes to the list (`role="listbox"`), never the host. A `div` with a role is not named by `label[for]`, so inside `kpt-form-field` the list gets `aria-labelledby` pointing at the wrapper's label (unless `ariaLabel` is set) and the hint or error in `aria-describedby`. New: `id`, `ariaLabel`, `required` (-> `aria-required`); `aria-invalid` after touch; `touch` fires on blur of the list. ## Tokens The frame `--kpt-form-field-*`; selection `--kpt-color-primary`. ## Read-only and required `readonly` lets you move through the list and read the choice but not change it (`aria-readonly`). With `multiple`, `Shift+ArrowUp/ArrowDown` selects the option focus moves to and `Shift+click` adds the range from the last clicked option (APG). The empty message sits next to the list.