Ashish Sharma

Otp Input

Component 25

About

A 6-digit one-time code input. Auto-advances, backspaces to the previous box, accepts a pasted code, then checks it: success turns green, a wrong code shakes and clears. Try the demo code. From Caliper UI (caliperui.site).

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Otp Input to your project and fits it to your theme.

Code

How Otp Input is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { OtpInput } from "@/components/ui/otp-input";

export default function Demo() {
  return <OtpInput />;
}

More by Ashish Sharma

View all
  • Perspective Gallery

    Perspective Gallery

    149
  • Bento Features

    Bento Features

    27
  • Animated Sidebar

    Animated Sidebar

    25
  • Glow Ring

    Glow Ring

    20
  • Notification Stack

    Notification Stack

    11
  • Expandable Tabs

    Expandable Tabs

    11
  • Voice Orb

    Voice Orb

    8
  • Aurora Hero

    Aurora Hero

    6