Input OTP

OTP slots follow the same elevation rules as inputs: inset by default, optional elevated emphasis.

Basic Usage

Enter the 6-digit code sent to your device.

Variants

Sizes

States

The code you entered is incorrect.

Best Practices

Use inset slots in containers; use elevated slots only when OTP is the primary focus.

Standalone emphasis
Nested in a Card

API Reference

Component
Notes
InputOTP
Wrapper around input-otp with Paper Cut spacing.
InputOTPSlot
Supports variant (default/circle/underline), elevation (inset/elevated), and size.
InputOTPSeparator
Optional separator between groups.