Component packs › Kintsugi › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
labels | [string, string, string] | Label while broken, while mending, and when whole. | |
action | () => unknown | The repair. Resolve to mend, reject to stay broken. | |
whole | boolean | Start whole instead of cracked. | |
onMended | () => void |
readonly state: 'broken' | 'mending' | 'whole'crack(): void: Cracks it again (a new break).destroy(): voidimport MendButton from './MendButton';
<MendButton />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Skeuomorphic UI.