Component packs › Clayworks › Clay Stepper

Clay Stepper

The number squishes as it changes, holding speeds up, and at the limit the whole stepper shakes its head.

Clay Stepper is a stepper from Clayworks, a component pack with 8 components: Soft clay controls that squash, dent and wobble. Price: $2 for the whole pack.

Built with: accelerating hold, limit shake, squish digits.

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.

Clay Stepper props

PropTypeDefaultDescription
labelstring
valuenumber
minnumber
maxnumber
autoplaybooleanShowcase mode: counts up and down by itself.
onChange(value: number) => void

Methods on the ref

Use it in React

import ClayStepper from './ClayStepper';

<ClayStepper />

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

More in Clayworks

Good for: Micro-interactions.