# KptInputMask (kpt-input-mask) A field with a character mask on Signal Forms. The value is a string. Import: `import { KptInputMask } from '@konce-pt/angular';` ## Mask tokens - `9` = a digit, `a` = a letter, `*` = alphanumeric. Every other character in the mask is a literal (spaces, parentheses, hyphens). ## Inputs / model - `value`: model (or `formField`) - `mask`: string (e.g. `(999) 999-99-99`) - `placeholder`: string (defaults to the mask) - `disabled`/`invalid`/`touched`: boolean; `touch`: output ## Example ## Screen reader and keyboard The on-screen keyboard follows the mask: only `9` tokens (phone, postal code) give `inputmode="numeric"`, otherwise `text`; override it with `inputMode`. `autocomplete` (`tel`, `postal-code`...) lets the browser fill the field in. ## 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`. New: `aria-invalid` after touch. ## Tokens The field uses `--kpt-form-field-*`. ## Read-only and required `readonly` is the native read-only field. The caret stays where you typed: fixing a digit in the middle of a phone number no longer throws it to the end. The `a` and `*` tokens accept every letter (`ą`, `ł`, `ß`), not only ASCII.