Component packs › Kintsugi › Shatter Undo

Shatter Undo

Delete breaks the card along jagged lines from where you pressed; Undo flies the shards back and fills every break with gold.

Shatter Undo is a delete from Kintsugi, a component pack with 6 crack and mend controls: Controls glazed like ceramic: errors crack them, and the repair flows in as gold. Price: $2 for the whole pack.

Built with: shards from the press point, undo rebuilds, gold seams on the breaks.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Shatter Undo props

PropTypeDefaultDescription
titlestring
textstring
secondsnumber6Seconds before the delete is final. Default 6.
onDelete() => void
onUndo() => void

Methods on the ref

Use it in React

import ShatterUndo from './ShatterUndo';

<ShatterUndo />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Kintsugi

Good for: Skeuomorphic UI.