OTP Input
- from @karaui
- by kara <ztzyrant@gmail.com>
A verification code field with one slot per digit: a focus ring that slides between slots, digits that roll into place, paste and SMS autofill support, a shake on wrong codes and a drawn check on success.
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @karaui/otp-inputRegistry dependencies0
The CLI adds no other registry items with this one.
