Input OTP

Numeric one-time code input with visual segments, native autofill, Laravel validation and opt-in submit on completion

Try the examples with the fixed demo code 001234. This is not a real authentication service, and submitted codes are not stored.

View documentation

Submit and validate in a Turbo Frame

Enter 001234 to verify a code without leaving the page. Try another code to see an inline validation error.

Enter 001234 to verify this demonstration.

Lengths and native states

Choose a code length and use familiar readonly, disabled and reset behavior.

Submit on completion

Verify a completed code automatically, or use the submit button. Automatic submission is opt-in.

Inside a Modal

Enter and select digits without leaving the dialog. Escape closes the dialog and returns to its trigger.

Inside a Dropdown

Verify a code inside an interactive menu that stays open while you type.