f0rextasy

Receipt Printer

Component

About

A thermal-printer-style card that feeds a list of mono receipt lines and a total out of a printer slot with a stepped paper animation.

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

Code

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

Usage.tsx

import { ReceiptPrinter } from "@/components/ui/receipt-printer";

export default function ReceiptPrinterDemo() {
  return (
    <div className="flex min-h-[28rem] w-full items-center justify-center bg-background p-8 text-foreground">
      <ReceiptPrinter
        lines={["DRINK", "1 Large Soda", "Fries on side"]}
        total="$8.50"
        autoFeed
      />
    </div>
  );
}

More by f0rextasy

View all
  • Newsletter Signup Card

    Newsletter Signup Card

    19
  • Board Checklist

    Board Checklist

    15
  • Stamp Seal

    Stamp Seal

    15
  • Network Graph

    Network Graph

    14
  • Navbar

    Navbar

    12
  • Running Order Timeline

    Running Order Timeline

    11
  • Milestone Chart

    Milestone Chart

    10
  • Empty State Card

    Empty State Card

    7