Launch sale — 60% off Pro
Contact
Input OTPStandard

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

React Input OTP - Standard OTP Input

A basic 6-digit OTP input with separator dividing two 3-digit groups built with shadcn/ui InputOTP components

Looking to implement shadcn/ui patterns?

Join our Discord community for help from other developers.


Simple OTP verification needs no bells and whistles—just 6 slots and clear visual grouping. This React pattern uses InputOTP with two InputOTPGroup components of 3 slots each separated by InputOTPSeparator creating familiar XXX-XXX format matching SMS codes. Built with shadcn/ui InputOTP primitives and uncontrolled state, it's perfect for basic two-factor authentication, phone verification, email confirmation, or any verification flow where standard OTP entry without extra features provides clean focused user experience.

Pattern created by @haydenbleasel

Installation

Questions you might have