Forms & inputs Input OTP

Components

Input OTP

Segmented one-time-code entry with keyboard navigation.

Default

Enter the 6-digit code sent to your email.

Variants

1
2

Four Digits — maxLength 4, digits-only Pattern

B
U
E

Alphanumeric — letters and numbers

1
2
3
4
5
6

Disabled

1
2

Invalid — that code has expired

Pattern restricts allowed characters; combine with a Card, Field labels, and a Resend button for the full Form pattern.

Markdown for agents: /design/input-otp.md · spec: /design.md