Component packs › Paper › Receipt Printer

Receipt Printer

The receipt feeds out of the slot line by line on a stepper rhythm while every line darkens like thermal print.

Receipt Printer is a confirmation from Paper, a component pack with 7 components: Components that behave like real paper. Price: $2 for the whole pack.

Built with: stepper feed, thermal ink, generated barcode.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Receipt Printer props

PropTypeDefaultDescription
shopstring
addressstring
orderstring
itemsReceiptItem[]
taxnumberTax rate, e.g. 0.06 for 6%.
currencystring
cardstring
printOnMountbooleantrue)Print as soon as it appears (default true).
autoplaybooleanShowcase mode: prints again by itself every few seconds.
onPrinted() => void

Methods on the ref

Use it in React

import ReceiptPrinter from './ReceiptPrinter';

<ReceiptPrinter />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Paper

Good for: Micro-interactions.