Stop Rebuilding UI

Shadcn.io is not affiliated with official shadcn/ui

OTP with Multiple Separators

A 6-digit OTP input with multiple separators creating three 2-digit groups in XX-XX-XX format built with shadcn/ui InputOTP

Credit card-style grouping makes some codes more readable—pairs of digits easier to verify than triplets. This React InputOTP uses three InputOTPGroup components with 2 slots each and two InputOTPSeparator components creating XX-XX-XX visual pattern. Built with shadcn/ui InputOTP with flexible separator placement, it's perfect for PIN-style codes, credit card verification, specific code formats requiring pair grouping, or any verification flow where 2-2-2 chunking matches code generation format or improves user verification accuracy.

OTP with Multiple Separators preview

Scroll to load preview

Installation

FAQ

Was this page helpful?

Sign in to leave feedback.