Skip to main content
  1. Docs
  2. Components
  3. Forms

OTP input

A one-time code in slots. Paste fills them all; the phone's SMS autofill lands in one go.

Import
@qeetrix/react/experimental
Status
ExperimentalSince 0.0.4
Renders
<input> per slotServer-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

Playground

Every prop, live, and the code it takes.

Groups
Size
Characters
verify.tsx
import { Field } from "@qeetrix/react";
import { OTPInput } from "@qeetrix/react/experimental";

<Field label="Verification code">
  <OTPInput />
</Field>

02

Six digits

Typing moves on, Backspace moves back, paste fills every slot; SMS autofill lands in one go.

Sent to +91 98765 •••10.

Type, or paste all six at once.

03

In groups

groups splits the slots: 123 – 456, easier to read back.

04

Sizes

md in a console; lg on a sign-in page.

05

Invalid

The Field's error, under the slots.

That code has expired. Send a new one.
Next — OTP inputUsage