f0rextasy

Keypad

Forms 3

About

A numeric PIN entry keypad styled like a ticket-booth turnstile, with masked digit slots, backspace/clear/submit keys, synthesized mechanical click sounds, and keyboard support.

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

Code

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

Usage.tsx

"use client";

import { Keypad } from "@/components/ui/keypad";

export default function KeypadDemo() {
  return (
    <div className="flex min-h-screen w-full items-center justify-center bg-background p-6">
      <Keypad
        maxLength={4}
        title="BOX OFFICE TURNSTILE"
        terminalId="TERMINAL #07"
        gate="GATE A-01"
        onValueChange={(pin) => console.log(pin)}
        onSubmit={(pin) => console.log("Admitted PIN:", pin)}
      />
    </div>
  );
}

More by f0rextasy

View all
  • Newsletter Signup Card

    Newsletter Signup Card

    8
  • Stamp Seal

    Stamp Seal

    7
  • Network Graph

    Network Graph

    7
  • Board Checklist

    Board Checklist

    5
  • Empty State Card

    Empty State Card

    3
  • Running Order Timeline

    Running Order Timeline

    3
  • Time Input

    Time Input

    3
  • Data Table

    Data Table

    3

More in Forms

View all
  • Premium Auth

    Premium Auth

    522
  • Contact Card

    Contact Card

    1K
  • Book A Demo 1

    Book A Demo 1

    72
  • Form

    Form

    137
  • Login 1

    Login 1

    52
  • Modern & Stunning sign in

    Modern & Stunning sign in

    1.6K
  • Book A Demo 4

    Book A Demo 4

    55
  • Split Sign In Form

    Split Sign In Form

    43