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

    41
  • Orb

    Orb

    20
  • Segmented Control

    Segmented Control

    16
  • Combobox

    Combobox

    9
  • Choicebox

    Choicebox

    9
  • Switch

    Switch

    4
  • Dialog

    Dialog

    4
  • Hover Card

    Hover Card

    4

More in Forms

View all
  • Premium Auth

    Premium Auth

    550
  • Contact Card

    Contact Card

    1.1K
  • Login 2

    Login 2

    10
  • Form

    Form

    17
  • Form

    Form

    20
  • Login 1

    Login 1

    59
  • SignInPage

    SignInPage

    720
  • Book A Demo 3

    Book A Demo 3

    95