Skip to content
SevenUI
Sign in

Input OTP

Free, copy-and-go Input OTP components built on the SevenUI Input OTP primitive.Read the primitive docs.

Slot sizes

28px slots for dense tables and toolbars.

32px slots that sit next to standard inputs.

44px slots for sign-in screens and touch devices.

npx shadcn@latest add @sevenui/component/input-otp-01pnpm dlx shadcn@latest add @sevenui/component/input-otp-01yarn dlx shadcn@latest add @sevenui/component/input-otp-01bunx --bun shadcn@latest add @sevenui/component/input-otp-01

Slot styles

Joined cells read as one control.

Separate boxes give each digit room to breathe.

Muted fills without borders for quiet surfaces.

A single stroke per digit, like a paper form.

npx shadcn@latest add @sevenui/component/input-otp-02pnpm dlx shadcn@latest add @sevenui/component/input-otp-02yarn dlx shadcn@latest add @sevenui/component/input-otp-02bunx --bun shadcn@latest add @sevenui/component/input-otp-02

Required for transfers above $5,000. Digits stay hidden unless you reveal them.

npx shadcn@latest add @sevenui/component/input-otp-03pnpm dlx shadcn@latest add @sevenui/component/input-otp-03yarn dlx shadcn@latest add @sevenui/component/input-otp-03bunx --bun shadcn@latest add @sevenui/component/input-otp-03

Use one of the 8-character codes you saved when you turned on two-step verification, like K7QD-2MXP. Letters are not case sensitive.

npx shadcn@latest add @sevenui/component/input-otp-04pnpm dlx shadcn@latest add @sevenui/component/input-otp-04yarn dlx shadcn@latest add @sevenui/component/input-otp-04bunx --bun shadcn@latest add @sevenui/component/input-otp-04

Field states

Waiting for the code from your app.

Share this pairing code with the TV.

Locked for 5 minutes after 3 attempts.

Phone number confirmed.

npx shadcn@latest add @sevenui/component/input-otp-05pnpm dlx shadcn@latest add @sevenui/component/input-otp-05yarn dlx shadcn@latest add @sevenui/component/input-otp-05bunx --bun shadcn@latest add @sevenui/component/input-otp-05

6 digits to go. Sent to maya@northwind.io.

npx shadcn@latest add @sevenui/component/input-otp-06pnpm dlx shadcn@latest add @sevenui/component/input-otp-06yarn dlx shadcn@latest add @sevenui/component/input-otp-06bunx --bun shadcn@latest add @sevenui/component/input-otp-06

Waiting for the text message…

Sent to (415) •••-0192. On a phone, the keyboard offers the code as soon as it arrives.

npx shadcn@latest add @sevenui/component/input-otp-07pnpm dlx shadcn@latest add @sevenui/component/input-otp-07yarn dlx shadcn@latest add @sevenui/component/input-otp-07bunx --bun shadcn@latest add @sevenui/component/input-otp-07

Production secret key

Created Aug 12 by Priya Shah. Last used 2 hours ago.

ak_live_••••••••••••••••

Enter a code from your authenticator app. Demo code: 314159.

npx shadcn@latest add @sevenui/component/input-otp-08pnpm dlx shadcn@latest add @sevenui/component/input-otp-08yarn dlx shadcn@latest add @sevenui/component/input-otp-08bunx --bun shadcn@latest add @sevenui/component/input-otp-08

Two-step sign-in

Two-step verification

Open your authenticator app and enter the 6-digit code for Northwind.

npx shadcn@latest add @sevenui/component/input-otp-09pnpm dlx shadcn@latest add @sevenui/component/input-otp-09yarn dlx shadcn@latest add @sevenui/component/input-otp-09bunx --bun shadcn@latest add @sevenui/component/input-otp-09
  1. Account
  2. Verify email
  3. Workspace

Check your inbox

We sent a 4-digit code to jordan.lee@fieldnote.app. It expires in 10 minutes.

Didn't get it? You can request a new code in 0:30

npx shadcn@latest add @sevenui/component/input-otp-10pnpm dlx shadcn@latest add @sevenui/component/input-otp-10yarn dlx shadcn@latest add @sevenui/component/input-otp-10bunx --bun shadcn@latest add @sevenui/component/input-otp-10

Connect a device

Enter the code shown in your terminal to sign in the Launchpad CLI.

zsh — ~/apps/storefront
$ launchpad login
! First copy your one-time code: WDJB-MJHT
Waiting for authorization…

8 letters. Codes expire 15 minutes after they're issued.

npx shadcn@latest add @sevenui/component/input-otp-11pnpm dlx shadcn@latest add @sevenui/component/input-otp-11yarn dlx shadcn@latest add @sevenui/component/input-otp-11bunx --bun shadcn@latest add @sevenui/component/input-otp-11

Enter passcode

Unlock Harbor to view your accounts

npx shadcn@latest add @sevenui/component/input-otp-12pnpm dlx shadcn@latest add @sevenui/component/input-otp-12yarn dlx shadcn@latest add @sevenui/component/input-otp-12bunx --bun shadcn@latest add @sevenui/component/input-otp-12

Authenticator app

Require a code from 1Password, Authy, or Google Authenticator when you sign in.

Off
QR code for adding Relay to your authenticator app

1. Scan the QR code with your authenticator app.

Can't scan? Enter this setup key manually:

JBSW Y3DP EHPK 3PXP
npx shadcn@latest add @sevenui/component/input-otp-13pnpm dlx shadcn@latest add @sevenui/component/input-otp-13yarn dlx shadcn@latest add @sevenui/component/input-otp-13bunx --bun shadcn@latest add @sevenui/component/input-otp-13
NP

Nora Pham

Parcelwise Support · usually replies in 2 min

Hi, I need to change the shipping address on order PW-48213.
NP
Happy to help. Before I open account details, I need to confirm it's you.
NP
Identity check

Enter the 5-digit code texted to (•••) •••-0455.

Nora will never ask for your password.

npx shadcn@latest add @sevenui/component/input-otp-14pnpm dlx shadcn@latest add @sevenui/component/input-otp-14yarn dlx shadcn@latest add @sevenui/component/input-otp-14bunx --bun shadcn@latest add @sevenui/component/input-otp-14