ai 2

OTP Pin Input

Forms 12

About

A segmented one-time-password (OTP) input made of individually focused digit boxes with auto-advance, backspace and arrow-key navigation, plus sibling styled variants for segment codes, verification codes, masked and stepper number fields.

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

Code

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

Usage.tsx

import InputOtp from "@/components/ui/inputs-otp";

export default function InputsOtpDemo() {
  return (
    <div className="flex min-h-[200px] w-full items-center justify-center bg-background p-10">
      <InputOtp />
    </div>
  );
}

Dependencies

More by ai 2

View all
  • Ripple Buttons

    Ripple Buttons

    33
  • Styled Toggle Switches

    Styled Toggle Switches

    22
  • Styled Progress Bars

    Styled Progress Bars

    17
  • Styled Badges

    Styled Badges

    16
  • Particle Toggles

    Particle Toggles

    14
  • File Input

    File Input

    11
  • Combo Kbd

    Combo Kbd

    11
  • Minimal Slider

    Minimal Slider

    10

More in Forms

View all
  • Premium Auth

    Premium Auth

    575
  • Login 1

    Login 1

    67
  • Contact Card

    Contact Card

    1.1K
  • Form

    Form

    19
  • Login Card

    Login Card

    35
  • Contact Form

    Contact Form

    28
  • Form

    Form

    141
  • Login Card

    Login Card

    31