About
A row of auto-advancing digit boxes for entering a one-time verification code sent by SMS, email, or an authenticator app.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Input OTP to your project and fits it to your theme.
Code
How Input OTP is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import InputOTP from "@/components/ui/input-otp";
import { useState } from "react";
export default function InputOTPCompleteDemo() {
const [code, setCode] = useState("482106");
return <InputOTP value={code} onChange={setCode} />;
}








