halaska-studio

Input OTP

Component 1

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} />;
}

More by halaska-studio

View all
  • Dot Grid

    Dot Grid

    24
  • Orb

    Orb

    15
  • Segmented Control

    Segmented Control

    8
  • Choicebox

    Choicebox

    6
  • Combobox

    Combobox

    5
  • Dialog

    Dialog

    4
  • Table

    Table

    2
  • Switch

    Switch

    1