39 Pro components and page blocks

Get Pro

Paper Shredder

New

Preview

Customize

Strips14
Speed150px/s

Usage

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

<PaperShredder />

Installation

npx shadcn@latest add https://uibrik.com/r/paper-shredder.json
Adds the files to components/uibrik/paper-shredder and installs @tabler/icons-react, motion and three. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/paper-shredder.

Props

PaperShredder
files
Type string[]
["Q3 numbers (final).pdf","Performance review.docx","Passwords.txt"]
Documents to shred, one after another.
meta
Type string
"Shared with 3 people"
Small print on each document.
stamp
Type string
"Confidential"
Stamp in the corner. Empty hides it.
strips
Type number
14
Columns the cutter makes.
speed
Type number
150
How fast the motor pulls paper through.
sound
Type boolean
true
Motor and cutter noise while shredding.
onShred
Type (name: string) => void
–
Called once a document has gone through.
className
Type string
–
Classes for the stage.