Conformance
Input OTP meets WCAG 2.2 level AA when used as described on these pages.
Keyboard
- Tab moves to the field.
- Type or paste the code; Backspace deletes.
What Input OTP gives you
- One real
input, so screen readers read one field. - Autofill of codes from SMS on phones.
What your team does
- Name the field (
aria-labelor a label). - Say how many characters and where the code was sent.
WCAG criteria
| Criterion | Level | How |
|---|---|---|
| 1.3.5 Identify Input Purpose | AA | one-time-code autocomplete |
| 3.3.1 Error Identification | A | A wrong code shows an error in text |