halaska-studio

Input OTP

Forms 5

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 InputOTPDemo() {
  const [code, setCode] = useState("");
  return <InputOTP value={code} onChange={setCode} />;
}

More by halaska-studio

View all
  • Dot Grid

    Dot Grid

    31
  • Orb

    Orb

    16
  • Segmented Control

    Segmented Control

    12
  • Combobox

    Combobox

    6
  • Choicebox

    Choicebox

    6
  • Dialog

    Dialog

    4
  • Switch

    Switch

    3
  • Select

    Select

    3

More in Forms

View all
  • Contact Card

    Contact Card

    1K
  • Premium Auth

    Premium Auth

    525
  • Login 2

    Login 2

    8
  • Form

    Form

    16
  • Card Studio

    Card Studio

    41
  • HeroUI Field Error

    HeroUI Field Error

    10
  • Book A Demo 1

    Book A Demo 1

    74
  • Book A Demo 3

    Book A Demo 3

    90