---
version: 1
component: receipt-shredder
title: Receipt shredder
scope: component
status: draft
---
# Receipt shredder
## Intent
Remove unwanted items with a tangible roller catch, continuous paper destruction, and a brief motor spin-down. Undo restores the actual items while the rollers reverse. The user requested a useful delete control, the long-receipt comedy “Just one item.” as its primary demo, two supporting demos, and particular attention to sound. The user approved the isolated cross-cut experiment with firmer paper and falling fibers and asked to integrate it. The user also approved the drawer pull-and-dump prototype, while calling out its odd positioning and extension. This draft documents integration with a shorter, centered rail stroke; approval of the prototypes is not approval of the complete component.
The component owns the supplied item list and one undo transaction. Its change callback lets a consuming application persist deletions and restorations. It does not delete operating-system files or claim secure erasure. The showcase's sample items, captions, joke ordering, layout, and long receipt are outside this component's scope. A long performance is optional: an admitted deletion commits immediately and does not wait for the animation. A print that cannot fit in the bin is rejected before any item changes; emptying frees capacity without discarding Undo.
At the user's request, Load image and dropping a local image now stage a printable copy. The original file remains on the user's device. Decoding happens in the browser without an upload service; the consuming application's change callback receives the staged item as well as deletions and restorations. Images are runtime canvas rasters, not persisted file URLs. An application that needs durable storage must explicitly serialize or store them.
The user found the long, clean strips too limp and stringy and preferred short cross-cut pieces with stiffer stock. They explicitly corrected the fiber treatment: fibers must fall loose, rather than stay attached. Approval of that prototype supports this material direction; the integrated pile, recovery, and drawer remain draft pending review.