Launch sale — 60% off Pro
Contact
Input OTPStandard

Not affiliated with official shadcn/ui. Visit ui.shadcn.com for official docs.

React Input OTP - 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

Looking to implement shadcn/ui patterns?

Join our Discord community for help from other developers.


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.

Pattern created by @haydenbleasel

Installation

Questions you might have