Skip to content
OwnlyPlans

Element

Receipt Printer (Pull to Tear)

A receipt that prints out of a metal slot after payment, line by line with a printer buzz, then tears off when you pull it down. Mobile and desktop.

Remix

Preview and code

Markdown
Feedback

Install

shadcn CLI
npx shadcn@latest add https://ownlyplans.com/r/bhaskar/receipt-printer-pull-to-tear.json

Adds the React files to components/ownlyplans/ in a project set up with shadcn and Tailwind CSS. Or copy them from the Code tab.

About

The moment after checkout, made satisfying. A thermal receipt feeds out of a brushed-metal slot in small steps, like a real printer, with a soft buzz for each line and a green light while it prints. It lists what was bought with quantities, subtotal, tax and total (worked out from your data, formatted in any currency), plus a barcode and order number.

When it’s done, hold the receipt and pull it down (or sideways): it rips at the slot with a jagged edge, a paper-tear sound plays, and it drops away. Pull a little and let go and it springs back. Works with mouse and touch, and the Tear off button does the same for keyboard users; Print again prints a fresh one. The receipt is real text and a real table, so screen readers can read it. With reduced motion it appears and tears without moving.

Pass your own items, currency, tax rate, order number and note. It fires receipt:printed and receipt:torn events (onPrinted and onTorn in React) so you can move on to the order page.

MIT License

Copyright (c) 2026 OwnlyPlans

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Your AI tool
Starter prompt

		

Download the plan