001
A range slider whose thumb is a droplet: it stretches when you drag fast, melts into the filled track, and buds off a little value bubble while you hold it.
akaslider·range·range input
Run this in any project set up for the shadcn CLI. It copies the Liquid Slider source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/liquid-slider.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { LiquidSlider } from "@/components/liquid-slider";
export default function Page() {
return <LiquidSlider />;
}A free React component in the Liquid collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Liquid Slider source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| value | number | — |
| defaultValue | number | — |
| onValueChange | (value: number) => void | — |
| min | number | 0 |
| max | number | 100 |
| step | number | 1 |
| label | ReactNode | — |
| icon | ReactNode | — |
| formatValue | (value: number) => string | (v) => String(v) |
| bubble | boolean | true |
| tone | keyof typeof TONES | "primary" |
| disabled | boolean | — |
| name | string | — |
| className | string | — |
| aria-label | string | — |