Keypad
Numeric entry for touch, kiosk and panel use. Digits in phone order.
Signature
Density
Viewport
Theme and light/dark are set in the top barWhen to use
Numeric entry for touch, kiosk and panel use.
Accessibility
Fully keyboard operable: Tab to focus, Enter/Space to activate. The visible focus ring uses --focus-ring — never remove it. Provide an accessible label (aria-label) for icon-only controls.
Install and import
npx shadcn@latest add @prism/keypad
import { Keypad } from '@/components/prism/Keypad';
In a no-build prototype, read it from the bundle instead: const { Keypad } = window.PrismDesignSystem_39d121;
Props
| Prop | Type | Required | Description |
|---|---|---|---|
value | string | — | The digit string being built. Fully controlled. |
onChange | (value: string) => void | — | |
onSubmit | (value: string) => void | — | Renders a full-width confirm key when provided. |
submitLabel | React.ReactNode | — | |
maxLength | number | — | |
decimal | boolean | — | Adds a decimal key in place of the blank. Off by default. |
keySize | number | — | Key height in px. Default 64 — this control is for fingers, not mice. |
isDisabled | boolean | — | |
className | string | — |