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>
);
}








