Skip to main content

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 bar
Live demo
Open ↗

When 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​

PropTypeRequiredDescription
valuestring—The digit string being built. Fully controlled.
onChange(value: string) => void—
onSubmit(value: string) => void—Renders a full-width confirm key when provided.
submitLabelReact.ReactNode—
maxLengthnumber—
decimalboolean—Adds a decimal key in place of the blank. Off by default.
keySizenumber—Key height in px. Default 64 — this control is for fingers, not mice.
isDisabledboolean—
classNamestring—