- Docs
- Components
- 3D & Tactile
- Tactile & Physics
- Receipt Printer
A thermal printer that prints receipts you can tear off
| Name | Type | Default | Description |
|---|---|---|---|
title | string | "NORTHSIDE COFFEE" | Name printed at the top. |
subtitle | string | an address | Line under the title. |
order | number | 4821 | Starting order number. Each new receipt counts up, with the time moving on a minute. |
items | ReceiptItem[] | a coffee order | Line items as { name, price, qty? }. Subtotal, tax and total are worked out for you. |
currency | string | "$" | Symbol printed before every amount. |
tax | number | 0.08875 | Tax rate as a fraction. 0 hides the tax line. |
footer | string | "Thank you. See you tomorrow." | Line printed at the bottom. |
barcode | boolean | true | Prints a barcode made from the order number. |
lines | ReceiptLine[] | — | Your own receipt instead of items: title, text, row, divider, barcode and space lines in any order. Good for year-in-review or ticket layouts. |
width | number | 280 | Paper width in pixels. The printer is a little wider. |
speed | number | 1 | How fast the paper feeds out. |
hold | number | 2600 | Milliseconds a finished receipt stays before it is torn off while autoplaying. |
autoplay | boolean | true | Prints, tears off and prints the next receipt on its own while in view. |
intro | boolean | true | The printer rises into place and its light blinks on before the first receipt feeds. Off, or with reduced motion, printing starts at once. |
curl | number | 0.5 | How far the paper leans back as it rises. |
tearable | boolean | true | Drag the receipt up to tear it off. A quick flick tears it too. |
theme | "auto" | "light" | "dark" | "auto" | Auto matches the paper and shadows to the background behind the printer. |
paperColor | string | warm white | Colour of the paper. |
inkColor | string | "#25252A" | Colour of the print. |
printerColor | string | graphite | Colour of the printer body. |
onTear | () => void | — | Called when a receipt is torn off. |
onPrinted | () => void | — | Called when a receipt finishes printing. |
ref | { print, tear } | — | Prints a fresh receipt or tears off the current one from your own code. |
className | string | — | Classes for the root element. |
style | CSSProperties | — | Inline styles for the root element. |
titlestringName printed at the top.
"NORTHSIDE COFFEE"subtitlestringLine under the title.
an addressordernumberStarting order number. Each new receipt counts up, with the time moving on a minute.
4821itemsReceiptItem[]Line items as { name, price, qty? }. Subtotal, tax and total are worked out for you.
a coffee ordercurrencystringSymbol printed before every amount.
"$"taxnumberTax rate as a fraction. 0 hides the tax line.
0.08875footerstringLine printed at the bottom.
"Thank you. See you tomorrow."barcodebooleanPrints a barcode made from the order number.
truelinesReceiptLine[]Your own receipt instead of items: title, text, row, divider, barcode and space lines in any order. Good for year-in-review or ticket layouts.
—widthnumberPaper width in pixels. The printer is a little wider.
280speednumberHow fast the paper feeds out.
1holdnumberMilliseconds a finished receipt stays before it is torn off while autoplaying.
2600autoplaybooleanPrints, tears off and prints the next receipt on its own while in view.
trueintrobooleanThe printer rises into place and its light blinks on before the first receipt feeds. Off, or with reduced motion, printing starts at once.
truecurlnumberHow far the paper leans back as it rises.
0.5tearablebooleanDrag the receipt up to tear it off. A quick flick tears it too.
truetheme"auto" | "light" | "dark"Auto matches the paper and shadows to the background behind the printer.
"auto"paperColorstringColour of the paper.
warm whiteinkColorstringColour of the print.
"#25252A"printerColorstringColour of the printer body.
graphiteonTear() => voidCalled when a receipt is torn off.
—onPrinted() => voidCalled when a receipt finishes printing.
—ref{ print, tear }Prints a fresh receipt or tears off the current one from your own code.
—classNamestringClasses for the root element.
—styleCSSPropertiesInline styles for the root element.
—