A segmented field for one-time codes with paste support and status.
A segmented field for one-time codes with paste support and status.
A fixed-slot one-time passcode input with paste, autofill, an error shake, and a staggered success wave.
A one-time-code field where a focus ring glides between slots and digits roll in; wrong codes shake, right ones draw a check.
Auto advance, paste, error recovery.
کد تأیید (OTP)
One-time code in N slots: paste fills all, auto-advance and backspace, numeric or alphanumeric, masked, error state, onComplete.
A React one time code input where one real input powers the slots, so paste, SMS autofill and screen readers work natively. Has groups, error shake and success.
A one time code, one box per character, where pasting the whole code works.
Coordinates typing, paste, error, and success feedback.
A one-time passcode field split into separate digit boxes — the "enter the 6-digit code we sent you" screen. Reach for it on any challenge step where a short numeric code is typed or pasted: two-factor and multi-factor sign-in (2FA/MFA), an authenticator app's TOTP code, an SMS or phone verification code, an email confirmation code, a magic-link fallback code, account recovery, a step-up check before a payment or a destructive settings change, device or TV pairing, and PIN entry. Common asks it answers: "otp input", "one time password input", "verification code input", "6 digit code input", "enter code boxes", "2fa code field", "sms code input", "confirmation code input", "pin input react", "segmented code input", "react-otp-input alternative", "input-otp alternative", "otp input without dependencies", "shadcn otp input". Official shadcn/ui covers the same screen with input-otp, and the difference is the dependency: that one is a wrapper around the third-party input-otp package (plus lucide-react for its separator), so installing it adds a runtime dependency and hands the caret and paste behaviour to a library. This is the same boxed UI written out in a single file with no dependencies at all — reach for it when the project is keeping its dependency list short, when a package has to be vendored or audited before it can be added, or when you want the behaviour in code you can read and change rather than configure. Digits only, by design: the value is stripped to digits and truncated to `length` (default 6) on every path in, so a controlled parent, a paste and a keystroke cannot disagree about what is in the field. Pasting a full code into any box distributes it across the rest and lands the caret on the last filled one, typing auto-advances, Backspace clears and steps back, and the arrow keys, Home and End move between boxes. The first box carries autocomplete="one-time-code", so iOS and Android offer the code from the incoming SMS, and every box is inputMode="numeric" with pattern="[0-9]*" for a numeric keypad on mobile. Every box is labelled "Digit N of 6" and the group carries a name of its own, so a screen reader user is told where they are instead of hearing six unlabelled text fields. Works controlled (`value` + `onChange`) or uncontrolled (`defaultValue`), fires `onComplete` once when the last box fills — on the fill only, not on every later edit — and forwards a ref to the first box so a page can focus it on mount or from a shortcut. Passing `name` mirrors the joined value into a hidden input, so it posts with a plain HTML form, a Next.js server action, or React Hook Form without a controller. Themed with shadcn tokens, so it follows dark mode.
Verification code field with auto-focus movement and paste detection.
A component for entering one-time passwords.
A component for entering one-time passwords with individual character slots.
A one-time code field with a slot per character.
Accepts a short code with one box for each character.
The verification code field done right – a gliding focus ring, paste and SMS autofill, a calm shake on errors and a morph into Verified
6-box code entry where each box is a tiny slot-machine cipher reel: keystrokes spin a canvas glyph strip into a weighted detent on the typed digit with an accent flash; backspace reverse-spins to blank and idle cells carry a faint ambient drift.
A one-time code input where each digit spins in like a slot reel, shakes on a wrong code and glows on success.
A OtpSlots component for SmoothUI.
A shadcn Alert for a form displaying form action result.
A className function to style a react aria component as a shadcn Badge
Base styles and utilities for Oui.
React aria components Button with shadcn characteristics.
Showing 20,665–20,688 of 30,790
Showing 20,665–20,688 of 30,790