Components
← All components

OTP Input

stimeo--otp

Accessible multi-cell passcode / PIN input supporting auto-advance, backspace retreat, and smart paste splitting.

The stimeo--otp controller streamlines the creation of highly usable and accessible multi-segment numeric passcode entry inputs popular in Multi-Factor Authentication (MFA). It supports keyboard roving and validation pattern checks, auto-advances focus on valid inputs, steps back and clears previous cells on Backspace, and splits pasted multi-digit text across segmented fields seamlessly. Dispatches stimeo--otp:complete once all fields are successfully filled.

running
Please enter the 6-digit authentication code

Keyboard

KeyAction
Backspace If the current field is empty, moves focus to the previous field and clears its content.
Moves focus to the previous input field.
Moves focus to the next input field.
Home Moves focus to the first input field.
End Moves focus to the last input field.