Component packs › Clayworks › Squish Button

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.

Squish Button props

PropTypeDefaultDescription
labelstring
tone'solid' | 'soft''solid' clay in the pack color, or 'soft' cream clay.
size'md' | 'lg'
autoplaybooleanShowcase mode: presses itself now and then.
onClick() => void

Methods on the ref

Use it in React

import SquishButton from './SquishButton';

<SquishButton />

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

More in Clayworks

Good for: Micro-interactions.