Masked Input
A text field that reformats its value as you type — the credit-card / IBAN mask. Digits are grouped into fixed-size chunks separated by a separator; non-digit characters are dropped and the length is capped. Try typing a long string of digits and letters.
- Axe
- Focus
Preview
Installation
npx shadcn@latest add https://ui.publictheta.com/r/masked-input.jsonConformance
Verified against the @publictheta/ui-spec masked-input specification on both the React and vanilla reference implementations, across Chromium, Firefox, and WebKit.
- Axe — No WCAG 2 A/AA axe-core violations
- Focus — A visible focus indicator appears on keyboard focus (WCAG 2.4.7)
See the full conformance matrix across all components.