API
@prepared911/ui/keypad.
| Prop | Type | Default | Description |
|---|---|---|---|
legend | LocalizedMessage | required | Fieldset legend naming the pad. |
legendVisibility | FieldsetLegendVisibility | visible | Hide the legend when an outer label suffices. |
keyLabels | Record<KeypadKey, LocalizedMessage> | required | Per-key accessible names. |
zeroHoldForPlusDescription | LocalizedMessage | package default | Optional hold-for-plus hint on zero (aria-description); omit for the catalog default. |
onKeyPress | (key: KeypadPressValue) => void | required | Fired on click, long press, or matching keydown inside the grid. |
disabled | boolean | false | Disables every key. |
preventFocusOnPress | boolean | false | Keeps focus on a paired input when keys are pressed. |
KEYPAD_KEYS, KEYPAD_LETTER_HINTS, KEYPAD_PLUS_KEY, isKeypadKey, KeypadKey, KeypadKeyLabels, KeypadPressValue.