Component packs › Tender › Receipt

Receipt

The receipt rises out of the card terminal in short motor steps, each line appearing as it passes the print head, with a torn edge.

Receipt is a receipt from Tender, a component pack with 6 payment components: Payment components where you watch the money move. Price: $2 for the whole pack.

Built with: stepped paper feed, line by line print, totals add up.

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 props

PropTypeDefaultDescription
merchantstring
addressstring
itemsReceiptItem[]
vatnumberVAT rate included in the prices, e.g. 0.1.
tipnumber
currencystring
cardstring
onPrinted() => void
autoplaynumber | falseShowcase mode: prints again every N ms while visible.

Methods on the ref

Use it in React

import Receipt from './Receipt';

<Receipt />

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

More in Tender

Good for: Pricing and payment.