OrcDev

8-bit Input OTP

Forms 28

About

Pixel-art one-time-password input from 8bitcn.com — chunky pixel borders on each slot with focus caret.

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

Code

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

Usage.tsx

"use client";

import {
  InputOTP,
  InputOTPGroup,
  InputOTPSlot,
} from "@/components/ui/8bit-input-otp";

export default function Default() {
  return (
    <div className="flex w-full min-h-screen items-center justify-center bg-background p-8 overflow-hidden">
      <div className="space-y-3">
        <div className="text-xs font-pixel uppercase tracking-widest text-muted-foreground">
          Enter Code
        </div>
        <InputOTP maxLength={4}>
          <InputOTPGroup>
            <InputOTPSlot index={0} />
            <InputOTPSlot index={1} />
            <InputOTPSlot index={2} />
            <InputOTPSlot index={3} />
          </InputOTPGroup>
        </InputOTP>
      </div>
    </div>
  );
}

Dependencies

More by OrcDev

View all
  • 8bit CTA 1 — Comparison

    8bit CTA 1 — Comparison

    303
  • 8bit 404 Page

    8bit 404 Page

    179
  • 8bit Loading Screen

    8bit Loading Screen

    113
  • 8bit Changelog

    8bit Changelog

    78
  • 8-bit Stats Dashboard

    8-bit Stats Dashboard

    66
  • 8bit FAQ 2 — Card Grid

    8bit FAQ 2 — Card Grid

    64
  • 8-bit Login Form

    8-bit Login Form

    59
  • 8bit Timeline Horizontal

    8bit Timeline Horizontal

    58

More in Forms

View all
  • Premium Auth

    Premium Auth

    567
  • Login 2

    Login 2

    12
  • Form

    Form

    139
  • Book A Demo 1

    Book A Demo 1

    90
  • Contact Card

    Contact Card

    1.1K
  • Authentication Card

    Authentication Card

    51
  • Card Studio

    Card Studio

    46
  • Login 1

    Login 1

    62