Components
← All components

OTP Input

stimeo--otp

A one-time code entered digit by digit, splitting a paste or an autofill across the boxes.

  • Core

Enters a verification code across one box per digit. The number of digits is simply how many boxes you rendered, so there is nothing to configure. Typing a character moves on to the next box, Backspace clears the current one, and from an empty box it steps back and clears that. Pasting the whole code, an operating system filling in the code it received, a password manager, or a Japanese input method confirming several characters at once are all split across the boxes. A character that is not accepted returns the box to what it held. Only when nothing at all could be filled is that reported, and completing every box is reported too.

running
Please enter the 6-digit authentication code
Successfully authenticated! Code:

Keyboard

KeyAction
Backspace Clears the focused field in place. If it is already empty, moves focus to the previous field and clears that one.
Moves focus to the previous input field. Under RTL this is ArrowRight.
Moves focus to the next input field. Under RTL this is ArrowLeft.
Home Moves focus to the first input field. Chorded (Control+Home) it is left to the document.
End Moves focus to the last input field. Chorded (Control+End) it is left to the document.