Loading preview
Animated Card
CardsA card that tilts in 3D toward the pointer with spring physics.
A desk shredder that feeds a page in and drops it out underneath in curling strips.
npx shadcn@latest add @venusui/paper-shredderRun this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.
Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.
@/components/ui/paper-shredder.tsxThe 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>
)
}
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | What's printed on the page. |
| strips | number | 12 | Strips the page is cut into. |
| onShred | (count: number) => void | — | Called when a page is shredded. |
All <div> props.
lucide-react for icons. React 19 and Tailwind CSS v4. The CLI adds the keyframes.onShred.Unknown registry "@venusui"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 foundnpx shadcn@latest init in your project first.A card that tilts in 3D toward the pointer with spring physics.
A sheet of bubble wrap to pop one by one, or a whole row with a drag.
A lens with a working iris: blades close to the chosen aperture and snap shut when you release the shutter.