Stop Rebuilding UI

Shadcn.io is not affiliated with official shadcn/ui

Standard OTP Input

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

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.

Standard OTP Input preview

Scroll to load preview

Installation

FAQ

Was this page helpful?

Sign in to leave feedback.