GitHub

OTP Input

One-time password code entry with individual fields, separator, states, underline/rounded variants, and resend timer.

Basic OTP Input

Preview

With Separator

Preview

States

Preview

Variants & Sizes

Preview

With Helper & Resend

Preview
Enter the 6-digit code sent to your phone
Didn't receive the code?
ClassDescription
.otpContainer (inline-flex)
.otp-fieldIndividual input (48x56px)
.otp-field-filledFilled field (tinted bg)
.otp-separatorDash between groups
.otp-smSmall (40x48px)
.otp-lgLarge (56x64px)
.otp-successSuccess state (green)
.otp-errorError state (red + shake)
.otp-disabledDisabled state
.otp-loadingLoading state
.otp-underlineUnderline variant
.otp-roundedCircular fields
.otp-secureMasked (dots) input
.otp-wrapperWrapper with helper text
.otp-helperHelper text
.otp-helper-errorError helper text
.otp-helper-successSuccess helper text
.otp-resendResend timer area
.otp-resend-btnResend button
.otp.glassGlass morphism variant