ComponentsPIN input

PIN input

Enter or paste a verification code into configurable square boxes.

Example

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.

Example

Spaces and dashes are removed on paste.

Four digits

Change a single attribute to render a shorter PIN.

Example

Enter your four-digit PIN.

Invalid code

Show a separate error message when verification fails.

Example

This code expired. Request a new code and try again.

Usage

LengthSet data-ilui-pin to a number from 1 to 12. The runtime generates that many boxes and the matching validation pattern.
KeyboardType to advance. Backspace deletes the previous digit and moves back. Arrow keys move within the code.
Paste and autofillOne native input handles paste and one-time-code autocomplete. Leading zeroes are preserved.