Shredder Delete Button

Pill holds still while its icon works: the lid flips, a sheet feeds in, paper ribbons tumble out below and a tally counts each shred.

Try it: Click — sheet feeds in, strips fall, tally ticks up.

Installation

Install with the shadcn CLI:

npx shadcn@latest add https://www.framekitui.live/r/shredder-delete-button.json

Or, with the @framekit namespace registered: npx shadcn@latest add @framekit/shredder-delete-button. You can also copy the source into components/ui/shredder-delete-button.tsx (view on GitHub).

Usage

import { ShredderDeleteButton } from '@/components/ui/shredder-delete-button'

Props

Component props
PropTypeDefaultNotes
variant'violet' | 'light' | 'danger''violet'Colour treatment.
label / busyLabel / doneLabelstring'Delete file' / 'Shredding…' / 'Shredded'Label per stage.
stripsnumber7Paper strips per shred (4–9).
widthnumber208Fixed pill width; the pill never resizes.
showCountbooleantrueShow the running × N tally.
onDelete() => void | Promise<unknown>—Rejecting jams the shredder and spits the sheet back.

Dependencies

  • motion
  • Cloud Launch Publish Button

    The arrow launches out of the cloud on a puff of vapour, a progress seam draws along the bottom edge, and a check drops back into the cloud.

  • Orbit Dot Export Button

    Pill tucks down to its ring, a shaped comet orbits with a trailing progress arc, the ring floods solid, the arrow bends into a check and the pill reopens as the next action.

  • Radial Share Menu

    Share pill folds into a close button while channel bubbles spring out on an arc; the pick glides to centre, becomes a check and really copies the link.

  • Face Scan Pay Button

    Navy pay pill folds into a lit square, a biometric reticle sweeps a face glyph while a comet laps the rim, then it unfolds with a check.

  • Confetti Burst Button

    A celebratory primary action: the label rolls to a check while a cone of paper confetti (or your own glyphs) bursts from the button with real drag, gravity and tumble. The canvas exists only while…

  • Swallow Delete Button

    Bin lid swings open on its hinge, the label’s letters arc inside, the lid snaps shut and a ring traces the receipt.

See all 24 Buttons components