Black Friday: 30% off Pro

Get 30% off

Updated

Paper Shredder

Pro

Preview

Q3 numbers (final).pdf
Shared with 3 peopleConfidential

Customize

Strips14
Speed150px/s

Installation

Pro

Paper Shredder is a Pro component

Sign in to see the source, or install it with a license key. The live preview and props above are free to explore.

Buying? Use the email you'll sign in with. Your license is tied to it.

Install with a key

  1. Add the Pro registry to components.json:
    components.json
    {
      "registries": {
        "@uibrik-pro": {
          "url": "https://uibrik.com/r/pro/{name}.json",
          "headers": { "Authorization": "Bearer ${UIBRIK_LICENSE}" }
        }
      }
    }
  2. Put your key in .env.local and add that file to .gitignore:
    .env.local
    UIBRIK_LICENSE=your-license-key
  3. Install it:
    Terminal
    npx shadcn@latest add @uibrik-pro/paper-shredder

Usage

import { PaperShredder } from "@/components/uibrik/paper-shredder/paper-shredder";​const files = ["Q3 numbers (final).pdf", "Performance review.docx", "Passwords.txt"];​<PaperShredder  files={files}  meta="Shared with 3 people"  stamp="Confidential"  strips={14}  speed={150}  sound  onShred={(name) => {}}/>

Where to use Paper Shredder

  • Deleting files

    Strips falling onto a pile make deletion final and memorable.

    Pairs with Black Hole Delete

  • Privacy product demos

    Shredding a document shows data destruction better than a trash icon.

  • Reset states

    A playful shred suits clearing a draft or emptying a list.

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.