shadcn's Input OTP in Notchset: 56px cells over one hidden input, a blinking caret, characters settling in, a node separator that fills, and a verify state that inks the cells or shakes them.
pnpm dlx shadcn@latest add https://beautiful-ui.dev/r/input-otp.jsonpnpm dlx shadcn@latest add https://beautiful-ui.dev/r/radix-nova/input-otp.jsonFree, no account or key. Use the command for your project's primitives: a radix-*, new-york or default style in components.json is Radix, a base-* style is Base UI. With the @beautiful-ui registry added, @beautiful-ui/<name> picks for you.
pnpm add input-otp@^1The CLI adds the styles to the CSS file named in components.json (tailwind.css). Check that it points at your global stylesheet, that the project uses Tailwind CSS v4, and that the file is imported in your root layout. Installed by hand: paste styles.css into that file.
Import it and pass your content. The props that matter most are listed next.
"use client";
import { InputOTPVerify } from "@/components/ui/notchset/input-otp";
export function VerifyEmail({ verify, resend }: { verify: (code: string) => Promise<boolean>; resend: () => Promise<void> }) {
return <InputOTPVerify onComplete={verify} onResend={resend} />;
}InputOTP–
input-otp props + state, uppercaseshadcn's root; state is idle, checking, ok or bad.
InputOTPGroup / InputOTPSlot / InputOTPSeparator–
componentsAs shadcn; the separator fills once `after` characters are in.
InputOTPVerify–
{ length, onComplete, onResend, resendAfter, tries, labels }The designed whole: verify, status and resend.
components/ui/notchset/input-otp.tsx