Inputs
v1.0.0Added in 1.0.0
A one-time-code input whose characters roll into place behind a caret that slides from slot to slot.
Type to fill each slot and move to the next one. Backspace clears a slot in place, then steps back on the next press. Arrow keys move between slots, and a caret slides along with you. Pasting a code, or letting the phone autofill one from a text message, drops it straight in. Set the status to turn the slots green, or shake them red on a wrong code.
npx wingo-ui@latest add otp-inputEnter 123456 to pass. Any other code fails.