ComponentsPIN input
PIN input
Enter or paste a verification code into configurable square boxes.
Verify your sign-in
Use the code from your sign-in message.
Enter the six digits.
Setup
Download the shared Inlay assets once. Then choose HTML, React, or Vue and copy the example above.
Grouped code
Separate a six-digit code into two groups of three.
Spaces and dashes are removed on paste.
Four digits
Change a single attribute to render a shorter PIN.
Enter your four-digit PIN.
Invalid code
Show a separate error message when verification fails.
This code expired. Request a new code and try again.
Usage
| Length | Set data-ilui-pin to a number from 1 to 12. The runtime generates that many boxes and the matching validation pattern. |
|---|---|
| Keyboard | Type to advance. Backspace deletes the previous digit and moves back. Arrow keys move within the code. |
| Paste and autofill | One native input handles paste and one-time-code autocomplete. Leading zeroes are preserved. |