ai 2

OTP Pin Input

Forms 8

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

    31
  • Styled Toggle Switches

    Styled Toggle Switches

    17
  • Styled Progress Bars

    Styled Progress Bars

    15
  • Styled Badges

    Styled Badges

    10
  • Particle Toggles

    Particle Toggles

    8
  • Combo Kbd

    Combo Kbd

    7
  • Shapes Skeleton

    Shapes Skeleton

    6
  • Input Group Glass

    Input Group Glass

    6

More in Forms

View all
  • Premium Auth

    Premium Auth

    524
  • Contact Card

    Contact Card

    1K
  • Book A Demo 1

    Book A Demo 1

    73
  • Login 1

    Login 1

    53
  • Form

    Form

    137
  • Card Studio

    Card Studio

    41
  • SignInPage

    SignInPage

    668
  • Modern & Stunning sign in

    Modern & Stunning sign in

    1.6K