Component packs › Clayworks › Squish Button
Press it and it squashes flat with a dent exactly under your finger, then wobbles back like jelly.
Squish Button is a button from Clayworks, a component pack with 8 components: Soft clay controls that squash, dent and wobble. Price: $2 for the whole pack.
Built with: press-point dent, volume-keeping squash, jelly release.
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 | ||
tone | 'solid' | 'soft' | 'solid' clay in the pack color, or 'soft' cream clay. | |
size | 'md' | 'lg' | ||
autoplay | boolean | Showcase mode: presses itself now and then. | |
onClick | () => void |
destroy(): voidimport SquishButton from './SquishButton';
<SquishButton />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Micro-interactions.