Component packs › Tactile › Dent Button
Clay dents exactly where you press, kneads itself into a loader, then puffs back on success or cracks on error.
Dent Button is a button from Tactile, a component pack with 6 components: Controls that behave like real materials. Price: $2 for the whole pack.
Built with: press-point dent, jelly recovery, loading / success / error.
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 |
|---|---|---|---|
label | string | ||
loadingLabel | string | ||
successLabel | string | ||
errorLabel | string | ||
onAction | () => unknown | Promise<unknown> | Return a promise to get the loading → success / error sequence. Throw or reject for error. | |
disabled | boolean | ||
size | number | Scale factor. 1 = 48px tall. | |
autoplay | number | false | Showcase mode: presses itself every N ms (alternates success / error). |
setDisabled(disabled: boolean): voidsetLabel(label: string): voiddestroy(): voidimport DentButton from './DentButton';
<DentButton />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Micro-interactions.