Kodza

OTP Input

A one-time code field: one real input drawn as cells. Digits rise into place, paste and SMS autofill just work, and the cells turn to ink once complete.

Forms No dependencies otpcodeinputform Added Oct 2026
/anim/otp-input/ Fullscreen

With your AI

Just ask.

Say it to your AI. It gets the exact code below, not its best guess, and knows where it goes.

Use the Kodza OTP Input for my 2FA code.

Not plugged in yet?
claude mcp add -t http kodza https://kodza.dev/api/mcp
Also in Codex, Cursor and VS Code.
kodza-otp-input.html
<div class="kodza-otp" data-length="6">
  <p class="kodza-otp__label">Enter the code we sent to florent@kodza.dev</p>
  <div class="kodza-otp__field">
    <input class="kodza-otp__input" type="text" inputmode="numeric" autocomplete="one-time-code" maxlength="6" aria-label="Six-digit code">
    <div class="kodza-otp__cells" aria-hidden="true"></div>
  </div>
  <p class="kodza-otp__foot">
    <span class="kodza-otp__done" aria-live="polite"></span>
    <span class="kodza-otp__again">Didn't get it? <button class="kodza-otp__resend" type="button">Resend in <span class="kodza-otp__count">30</span>s</button></span>
  </p>
</div>

Checked

Checked before you paste.

Robots poked at it before you did. Every component goes through the same checks, and again each time it changes.

What ranLast run
Accessibilityaxe-core 4.10.2: the WCAG 2.1 A and AA rules, plus best practices. 0 issues
KeyboardThe Tab key gets there, and the focus ring shows when it does. Passed
Reduced motionTurn on reduced motion and what moved just appears. Nothing loops. Passed
Light and darkThe same checks on both themes, contrast included. Passed
WordPressPasted into Twenty Twenty-Five, Twenty Twenty-One, Astra, Blocksy, GeneratePress, Hello Elementor, Kadence and OceanWP. Nothing to flag. 8 / 8 themes
Robots checked this. A human with VoiceOver hasn't yet.
KeyboardPress them in the preview
In the code field
  • Only digits get in, one cell eachA–Z
  • Erases the last digitBackspace
  • Held back, the caret stays after the last digit←/→/Home/End

More like this

More in Forms