IN-07Inputs
Liquid Slider
A vertical slider you fill like a glass, with a sloshing surface and rising bubbles.
no extra packages
PRONatural Date Input and more like it are in Kokonut UI Pro
Installation
Liquid Slider is a free, open-source React component in the Kokonut UI Inputs collection. Add it with the shadcn CLI, which copies the source into components/kokonutui/liquid-slider.tsx, so the code is yours to change.
npx shadcn@latest add @kokonutui/liquid-sliderUsage
import LiquidSlider from "@/components/kokonutui/liquid-slider";
export default function Example() {
return <LiquidSlider />;
}Props
valuenumberdefaultValuenumberDefault 1250onValueChange(value: number) => voidminnumberDefault 0maxnumberDefault 2000stepnumberDefault 50unitstringDefault "ml"Shown after the number.
labelstringDefault "Water today"formatValue(value: number) => stringDefault defaultFormatFormats the readout and aria-valuetext.
classNamestringExtra classes for the root element.
Dependencies
| Needs | Version | Comes from |
|---|---|---|
cn from lib/utils.ts | shadcn init | |
| React | 19 | Your app |
| Tailwind CSS | 4 | Your app |
No provider, font or global CSS to set up: the file works as soon as it lands.

