halaska-studio

Input OTP

Forms 8

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

    55
  • Orb

    Orb

    28
  • Segmented Control

    Segmented Control

    20
  • Combobox

    Combobox

    15
  • Choicebox

    Choicebox

    13
  • Table

    Table

    8
  • Switch

    Switch

    6
  • Dialog

    Dialog

    6

More in Forms

View all
  • Contact Form

    Contact Form

    30
  • Form

    Form

    7
  • Premium Auth

    Premium Auth

    607
  • Book A Demo 1

    Book A Demo 1

    94
  • Card Studio

    Card Studio

    48
  • Contact Card

    Contact Card

    1.1K
  • Login 2

    Login 2

    16
  • Paper Plane

    Paper Plane

    30