Axon 911 Frontend Docs
    Loading navigation…
U
User
Switch to light mode
  1. Components
  2. Keypad
  3. API and Development

Keypad

API

View SourceOpens in a new tabSubmit IssueOpens in a new tab
Import from @prepared911/ui/keypad.
PropTypeDefaultDescription
legendLocalizedMessagerequiredFieldset legend naming the pad.
legendVisibilityFieldsetLegendVisibilityvisibleHide the legend when an outer label suffices.
keyLabelsRecord<KeypadKey, LocalizedMessage>requiredPer-key accessible names.
onKeyPress(key: KeypadKey) => voidrequiredFired on click or matching keydown inside the grid.
disabledbooleanfalseDisables every key.
preventFocusOnPressbooleanfalseKeeps focus on a paired input when keys are pressed.
Also exported: KEYPAD_KEYS, KEYPAD_LETTER_HINTS, isKeypadKey, KeypadKey, KeypadKeyLabels.
Previous
Keypad / Usage
Next
Keypad / Accessibility