Logo Docs

Pin input

Pin input

Basic

Examples below use Tailwind utility classes for OTP-style layouts

Placeholder

Gray variant

Underline variant

Focus scale

Lengths (3, 5, 7)

Regex subset (digits 0–3)

Telephone number

Ten numeric cells with type="tel" and inputMode="numeric" so mobile browsers show the phone-style keypad. Paste distributes digits across cells.

Enter a 10-digit number

Alphanumeric (10 characters)

Masked (type="password")

iOS OTP hint

Disabled

Sizes

Hidden field (forms)

A hidden field named otp is kept in sync for native form posts.

In modal

Enter code