The shadcn Input OTP for one-time codes, with verify and error states.
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.
InputOTPdata-slot="input-otp"
The input.
InputOTPSlotdata-slot="input-otp-slot"
One cell.
InputOTPVerifydata-slot="input-otp-verify"
The designed whole.
components/ui/notchset/input-otp.tsx
pnpm dlx shadcn@latest add https://notchset.dev/r/input-otp.jsonpnpm dlx shadcn@latest add https://notchset.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 @notchset registry added, @notchset/<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.
Give your coding assistant the Markdown guide instead of screenshots.
https://notchset.dev/api/mcp (setup)v1.0.0 · 2026-10-02
First release