CD-12Cards
Receipt Printer
A receipt that prints line by line, then tears off and falls when you pull it, built with React.
PROShipping orders? Order Tracker is in Kokonut UI Pro
Installation
Receipt Printer is a free, open-source React component in the Kokonut UI Cards collection. Add it with the shadcn CLI, which copies the source into components/kokonutui/receipt-printer.tsx, so the code is yours to change.
npx shadcn@latest add @kokonutui/receipt-printerUsage
import ReceiptPrinter from "@/components/kokonutui/receipt-printer";
export default function Example() {
return <ReceiptPrinter />;
}Props
merchantstringDefault "Kokonut Coffee"orderstringDefault "#4182"datestringDefault "14 Oct 2026 · 08:42"itemsReceiptItem[]Default built-intaxnumberDefault 0.08Tax rate, 0.08 for 8%.
currencystringDefault "$"autoPrintbooleanDefault truePrint as soon as the printer scrolls into view.
onPrint() => voidonTear() => voidclassNamestringExtra classes for the root element.
ReceiptItem
namerequiredstringquantityrequirednumberpricerequirednumberDependencies
| Needs | Version | Comes from |
|---|---|---|
cn from lib/utils.ts | shadcn init | |
| React | 19 | Your app |
| Tailwind CSS | 4 | Your app |
No provider, font or global CSS to set up: the file works as soon as it lands.

