Skip to content
VenusUI
Get started

Paper Shredder

A desk shredder that feeds a page in and drops it out underneath in curling strips.

Preview

Installation

npx shadcn@latest add @venusui/paper-shredder

Run this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.

Files added to your project

Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.

  • @/components/ui/paper-shredder.tsx

Usage

The code behind the preview above.

paper-shredder-demo.tsx

import { PaperShredder } from "@/components/ui/paper-shredder"

export default function PaperShredderDemo() {
  return (
    <PaperShredder>
      <p className="font-semibold">Old drafts.docx</p>
      <p className="mt-2">Ideas we never shipped, a logo with a gradient and a tagline nobody liked.</p>
      <p className="mt-2">Notes from the meeting that could have been an email.</p>
    </PaperShredder>
  )
}

API reference

PropTypeDefaultDescription
childrenReactNode—What's printed on the page.
stripsnumber12Strips the page is cut into.
onShred(count: number) => void—Called when a page is shredded.

All <div> props.

Requirements

  • lucide-react for icons. React 19 and Tailwind CSS v4. The CLI adds the keyframes.

Customization

  • A memorable confirmation for deleting data; run the real deletion in onShred.

Accessibility

  • Shred and New page are buttons, and progress is announced. Reduced motion skips the feed.

Troubleshooting

Something looks different from the preview.
Components use your project’s theme tokens, so surrounding colours and radius follow your styles.
Unknown registry "@venusui"
Your shadcn CLI couldn’t find the namespace in the shadcn registry index. Use the latest CLI (npx shadcn@latest), install by URL, or register it with its address: npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json.
No components.json found
Run npx shadcn@latest init in your project first.
Loading preview

A card that tilts in 3D toward the pointer with spring physics.

Loading preview

Bubble Wrap

Interactive

A sheet of bubble wrap to pop one by one, or a whole row with a drag.

Loading preview

Camera Shutter

Interactive

A lens with a working iris: blades close to the chosen aperture and snap shut when you release the shutter.