ham7a311

Ribbon OTP

Forms 5

About

A one-time verification-code input that reads as a single divided ribbon instead of six separate boxes, with per-digit drop animation, keyboard/paste support, and a success sweep or error shake on completion.

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

Code

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

Usage.tsx

"use client";

import RibbonOtp from "@/components/ui/ribbon-otp";

export default function Demo() {
  return (
    <div className="flex min-h-full w-full flex-col items-center justify-center gap-4 bg-[#0b080d] p-8">
      <RibbonOtp
        verify={(c) => c === "482913"}
        label="Enter the 6-digit code we sent you"
      />
      <p className="font-mono text-[11px] uppercase tracking-[0.16em] text-white/35">
        Demo code: 482913 · paste works
      </p>
    </div>
  );
}

More by ham7a311

View all
  • Wave Mesh

    Wave Mesh

    216
  • Route Globe

    Route Globe

    171
  • Glass Tiles

    Glass Tiles

    159
  • Orbit Ring Stats

    Orbit Ring Stats

    71
  • Glyph Swell

    Glyph Swell

    66
  • Fan Deck Card

    Fan Deck Card

    54
  • Ask Bar

    Ask Bar

    52
  • Glass Ribbons

    Glass Ribbons

    46

More in Forms

View all
  • Premium Auth

    Premium Auth

    593
  • Contact Form

    Contact Form

    28
  • Form

    Form

    4
  • Login 1

    Login 1

    70
  • Book A Demo 1

    Book A Demo 1

    94
  • Contact Card

    Contact Card

    1.1K
  • HeroUI Field Error

    HeroUI Field Error

    13
  • Form [react-aria-components]

    Form [react-aria-components]

    19