Skip to content
Feedback & Data

ReceiptToast

The toast is a slip from a thermal printer. Paper feeds up out of the slot in small jerks, one line at a time, and you drag it up or press Tear to rip it off against the saw bar.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
titlestring"Payment received"Printed first.
metastringorder lineSmall line under the title.
items{ label: string; price: string }[]3 linesThe lines of the receipt.
totalstring"₹647"The total, in your own format.
footerstring"Thank you. Come again."Last line, above the barcode.
durationnumber0Tears off by itself this many ms after printing. 0 keeps it.
onTear() => void-Called when the paper is torn off.
classNamestring"w-full max-w-sm"Set the width here. Everything scales with it.