Report a problem or share feedback← Catalog
OTP Input
freebeui/otp-input
One-time-code input with a gliding focus ring, digits that roll in per slot, error shake and a success check draw.
$
npx shadcn@latest add @beui/otp-inputnpm deps: clsx, motion, tailwind-merge
- Source
- beUI (free)
- Kind
- block
- Categories
- input
- Use as
- drop-in — replaces your component
- Applies to
- input
- Motion
- on state · subtle · motion · medium cost
- Tags
- react, tailwind-v4, motion, blocks
- Licence
- MIT — Copyright (c) 2026 Saurabh Chauhan; retain the upstream notice when copying source.
- Live demo
- beui.dev
- Docs
- beui.dev
Similar
Compare all 4 →- Morphing Search Morphing Searchbeui/morphing-searchSearch controls that expand without losing context. Connect actual results and keyboard behavior; avoid importing a demo search dataset.
- File Upload Upload Queuebeui/file-uploadA drag-and-drop upload queue with progress rows, upload states, retry, and removal.
- Morphing Search Chip Searchbeui/morphing-search-chipsDocked search bar that springs wider on focus and unfolds a recent-searches panel out of its own edge. Terms become removable chips, the bar grows with them, and suggestions filter as you type.