Le Thanh

OTP Input

Cards 77

About

OTP Input, OTP Form

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds OTP Input to your project and fits it to your theme.

Code

How OTP Input is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { OTPVerification } from "@/components/ui/otp-input";

const settings = { stiffness: 700, damping: 20, y: 10, opacity: 0 };

export default function Demo(props: Partial<typeof settings>) {
  const s = { ...settings, ...props };
  return (
    <div className="h-screen w-screen flex items-center justify-center">
      <OTPVerification {...s} />
    </div>
  );
}

Dependencies