Input OTP — one-time verification code input

A React component for entering SMS or email verification codes in separate boxes, backed by a single real input — so paste, SMS code autofill on phones, screen readers and keyboards all work. Slot count, grouping with separators, the allowed pattern (digits only or digits and letters) and a completion callback are configurable, and a blinking caret marks the active slot. Ideal for SMS-code login screens. Built with React and Tailwind CSS v4.

Input OTP — one-time verification code input | Hub Design

Contact: info@hubdesign.ir · 0211733

Author: Mohammad Barotuiha