BASE COMPONENTS

Input [OTP]

A purpose-built verification code entry component. Input OTP handles 4, 5, 6, and 8-digit codes with separator control, 4 appearance styles, and 2 item styles, ready in Figma and React.

Last Update:
JUN 01, 2026
Input [OTP]
Ayla Karagöz
Diego Fernández
Dimitri Volkov
Erik Lindqvist
Fatou Diallo
Haruki Mori
Jae Park

Loved by 2,000+ users worldwide.

Overview

Input OTP is a purpose-built verification code entry component. It handles every common OTP length and visual style out of the box, with 4 digit count options, separator control, and two item styles, all fully customizable from the parent without detaching, in both Figma and React.

Figma Preview

Preview in Figma

When should you use them?

Use an OTP input whenever a user enters a verification code, such as a one-time SMS code, an authenticator token, or a PIN. The dedicated digit fields make codes easy to read and enter, and signal clearly that a short, fixed-length code is expected.

How should you use them?

  • Match the digit count to your code length (4, 5, 6, or 8) so the field guides the user precisely.
  • Use separators to visually group longer codes like 8-digit tokens for easier reading.
  • Choose the item style (Outline or Filled) and appearance to match your auth or form context.
  • Support paste so users can drop in a full code at once, not just type digit by digit.
  • Show a clear Error message when a code is wrong or expired, with a way to resend.
  • Keep the field keyboard-accessible and auto-advance focus as the user types.
FAQ

Questions,
answered clearly.

Plans, pricing, licensing, updates, and technical questions, all answered in one place.

Still have questions?

Visit ourHelp Centerfor detailed guidance, orGet in Touchwith our team
Çağla
Hakan
Batuhan
Atakan
Çağatay
for product,licensing ortechnical questions.

Your current plan is a one-time payment, no subscriptions, no recurring charges for what you buy today. Some future Create UI products (such as AI-powered features) may be offered as optional add-on subscriptions, but these are entirely separate and will never affect your existing purchase. What you buy now, you own permanently.

Start with Create UI

Stop deciding. Start shipping.

Install it today and your next screen takes an hour instead of a day. Keep rebuilding from scratch, and next quarter looks exactly like this one.

Start Free Now. Upgrade whenever you need.

Create UI