Component packs › Tactile › Dent Button

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.

Dent Button props

PropTypeDefaultDescription
labelstring
loadingLabelstring
successLabelstring
errorLabelstring
onAction() => unknown | Promise<unknown>Return a promise to get the loading → success / error sequence. Throw or reject for error.
disabledboolean
sizenumberScale factor. 1 = 48px tall.
autoplaynumber | falseShowcase mode: presses itself every N ms (alternates success / error).

Methods on the ref

Use it in React

import DentButton from './DentButton';

<DentButton />

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

More in Tactile

Good for: Micro-interactions.