PinInput

An input for one-time passcodes or PINs, made of one field per character. Typing advances to the next field, Backspace goes back, pasting fills the remaining fields, and the arrow keys move between them.

The bound value is the characters only, without separators, so it can be submitted directly. Use oncomplete to act when every character has been entered, or validate completeness with a schema.

Structure

<PinInput name="code" length={6} oncomplete={(code) => verify(code)} />

Demo