design-infraGitHub
Report a problem or share feedback← Catalog

OTP Input

free

beui/otp-input

One-time-code input with a gliding focus ring, digits that roll in per slot, error shake and a success check draw.

state — subtledrop-inTechnicalRefinedPlayful
$npx shadcn@latest add @beui/otp-input

npm 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