Component packs › Kintsugi › Mend Button

Mend Button

It sits cracked; press it and gold flows into the cracks while your action runs, so the repair is the progress.

Mend Button is a button 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: gold as progress, drains on failure, crack() to break again.

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.

Mend Button props

PropTypeDefaultDescription
labels[string, string, string]Label while broken, while mending, and when whole.
action() => unknownThe repair. Resolve to mend, reject to stay broken.
wholebooleanStart whole instead of cracked.
onMended() => void

Methods on the ref

Use it in React

import MendButton from './MendButton';

<MendButton />

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

More in Kintsugi

Good for: Skeuomorphic UI.