OTP input design

Six boxes for the code from an email or a text. Typing moves along by itself, pasting fills every box, a wrong code shakes and clears, and a right one turns the boxes green.

Ship it

Check your email

We sent a six-digit code to [email protected].

No email?

Code cardFormsPro

Sign in

Enter your email and we will send you a sign-in link.

What makes a good one

  1. Let people paste

    Most people copy the code from their email. A paste into any box should fill all six.

  2. Move for them

    Typing a digit moves to the next box, so nobody has to press tab between numbers.

  3. Say when it is wrong

    A wrong code should clear the boxes and start again, not leave six red digits to delete.

Questions

What is an OTP input?

A one-time passcode input: a row of boxes, one for each digit of the code sent by email or text when someone signs in.

How many digits should the code have?

Six is the usual length. Four is quicker to type but easier to guess.

Is the code free?

The code card comes with Pro, in React and HTML. The sign-in card that comes before it is free.