Skip to content
SevenUI
Sign inGet Pro

Input OTP components

14 free, copy-and-go React Input OTP examples built on the SevenUI Input OTP primitive. Install any of them with the shadcn CLI.

On this page

Slot sizes

Compact, default, and large six-digit code fields, each labeled with where it fits.

… add @sevenui/component/input-otp-01… add @sevenui/ui-sdk/component/input-otp-01

28px slots for dense tables and toolbars.

32px slots that sit next to standard inputs.

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

Slot styles

One partly filled code in segmented, detached, soft, and underline treatments.

… add @sevenui/component/input-otp-02… add @sevenui/ui-sdk/component/input-otp-02

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.

Masked PIN with reveal

A four-digit payout PIN in round slots with a toggle that shows or hides the digits.

… add @sevenui/component/input-otp-03… add @sevenui/ui-sdk/component/input-otp-03

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

Alphanumeric recovery code

An eight-character recovery code in two groups that accepts letters and uppercases them as you type.

… add @sevenui/component/input-otp-04… add @sevenui/ui-sdk/component/input-otp-04

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

Field states

Empty, read-only, disabled, error, and verified states of a six-digit code field side by side.

… add @sevenui/component/input-otp-05… add @sevenui/ui-sdk/component/input-otp-05

Waiting for the code from your app.

Share this pairing code with the TV.

Locked for 5 minutes after 3 attempts.

Phone number confirmed.

Fill progress indicator

Slots that tint and lift as they fill, with a segmented progress track and a live remaining count.

… add @sevenui/component/input-otp-06… add @sevenui/ui-sdk/component/input-otp-06

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

SMS code autofill

A phone verification field with a simulated incoming text that offers to fill the code in one tap.

… add @sevenui/component/input-otp-07… add @sevenui/ui-sdk/component/input-otp-07

Waiting for the text message…

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

Reveal secret with code

An API secret stays masked until an authenticator code auto-verifies, with checking and error states.

… add @sevenui/component/input-otp-08… add @sevenui/ui-sdk/component/input-otp-08

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.

Two-step sign-in

Sign-in card with a 3+3 authenticator code, a trust-this-browser checkbox, and a signed-in confirmation.

… add @sevenui/component/input-otp-09… add @sevenui/ui-sdk/component/input-otp-09

Two-step verification

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

Email verification step

Onboarding step with a progress stepper, a four-digit email code, and a resend countdown.

… add @sevenui/component/input-otp-10… add @sevenui/ui-sdk/component/input-otp-10
  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

CLI device authorization

Device-flow pairing that matches a terminal code, then lists requested scopes with Authorize and Deny.

… add @sevenui/component/input-otp-11… add @sevenui/ui-sdk/component/input-otp-11

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.

Mobile passcode lock

Phone-style lock screen with a dot passcode driven by a keypad or keyboard that unlocks to a balance.

… add @sevenui/component/input-otp-12… add @sevenui/ui-sdk/component/input-otp-12

Enter passcode

Unlock Harbor to view your accounts

Authenticator setup

Three-step two-factor setup: QR code and setup key, a code check, then recovery codes.

… add @sevenui/component/input-otp-13… add @sevenui/ui-sdk/component/input-otp-13

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

Support chat verification

An identity check inside a support chat where a texted five-digit code is shared with the agent.

… add @sevenui/component/input-otp-14… add @sevenui/ui-sdk/component/input-otp-14
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.

Components are the parts. Blocks are the page.

Pro blocks are whole sections and pages — heroes, pricing, dashboards, auth — composed from the same primitives and themed by the same tokens you already use. Install one and it is yours.

One purchase, yours forever. $99 at launch instead of $249.