Component packs › Clayworks › Dough Slider
The fill is a dough rope that bulges near the ball you drag, and a value bubble puffs up above it.
Dough Slider is a slider from Clayworks, a component pack with 8 components: Soft clay controls that squash, dent and wobble. Price: $2 for the whole pack.
Built with: bulging rope, squashing ball, slider keys.
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 | ||
value | number | ||
min | number | ||
max | number | ||
step | number | ||
unit | string | ||
autoplay | boolean | Showcase mode: slides by itself. | |
onChange | (value: number) => void |
set(value: number): voiddestroy(): voidimport DoughSlider from './DoughSlider';
<DoughSlider />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Micro-interactions.