Skip to main content

Free · Live demos · Updated November 2026

Free OTP input component

These 4 free OTP input components are for one-time codes and PINs. One has six cubes with a caret that springs from box to box, one lifts each dash as you type, one is a joined capsule and one flips characters like a split-flap board. Each is a real text field, live below, with Focus, Error and Valid as inputs your verification code drives.

An OTP field is usually seen once per sign-in, at a moment of friction, so clear focus and a clear error matter more than decoration.

We make ExodeUI. Every component on this page comes from our own library.

Try them live 4

Every component below is running. Drag, tap or type to try it, then open it in ExodeUI or see its inputs and code.

Browse all 794 in Exode Galleries

What to look for in an OTP input

  • Paste of the whole code fills every box.
  • The current box is obvious, so people know where they are.
  • A clear error state when the code is wrong.
  • Numeric keyboard on phones.

Use it in your app

The code for PIN Cubes, Flying Caret, with its real file and input names. Every component on this page works the same way.

npm install exodeui
import { useEffect } from 'react';
import { ExodeUICanvas, useExodeUI } from 'exodeui';

export function OtpCubes() {
  const { engine, setEngine, updateInput, fireTrigger } = useExodeUI();

  useEffect(() => {
    updateInput("PIN Cubes, Flying Caret · Value", "Hello");
  }, [engine]);

  return (
    <>
      <ExodeUICanvas src="/otp-cubes.bexode" onReady={setEngine} />
      <button onClick={() => fireTrigger("PIN Cubes, Flying Caret · Submitted")}>Submitted</button>
    </>
  );
}

Questions

Is this OTP input free?

Yes. Every design comes from a studio built into the ExodeUI editor, and the studios are part of the free Community plan. You can open and change any design without a paid plan, or download its .exode file from its page. The runtimes are free npm, Swift and Flutter packages.

Does it handle real typing?

Yes. These are native InputBox widgets, so typing is real and your code reads the text.

How do I show a wrong code?

Set the Error input from your verification result. The field plays its error motion and you can clear it when the user types again.

What should I check for paste and autofill?

Test pasting a full code and the phone’s one-time code autofill in your own app before you ship; behaviour depends on the platform and how you embed the field.

Which frameworks does it work in?

Each design is one .exode file. The ExodeUI runtimes play the same file in React, Vue, Svelte, Angular, Solid, React Native, SwiftUI and Flutter, and the inputs have the same names in all of them.

More free components

Make your own in ExodeUI

Free to start. Every studio behind these components is built into the editor, and everything it makes stays native and editable.

Try ExodeUI for free
ExodeUI

EXODEUI DESKTOP

A little space for good ideas.

Choose your platform to get the official ExodeUI installer.

Looking for Intel Mac or other builds? Explore the web studio or check all download options.

Prefer the browser? Try for free in your browser →