CD-09Cards
Liquid Gauge
A usage meter filled with liquid that sloshes, ripples and bubbles, built with React and a wave simulation.
PROOnboarding Checklist and more like it are in Kokonut UI Pro
Installation
Liquid Gauge is a free, open-source React component in the Kokonut UI Cards collection. Add it with the shadcn CLI, which copies the source into components/kokonutui/liquid-gauge.tsx, so the code is yours to change.
npx shadcn@latest add @kokonutui/liquid-gaugeUsage
import LiquidGauge from "@/components/kokonutui/liquid-gauge";
export default function Example() {
return <LiquidGauge />;
}Props
valuenumberControlled fill, 0 to 100.
defaultValuenumberDefault 72Initial fill when uncontrolled.
onValueChange(value: number) => voidreadOnlybooleanDefault falseTurns the gauge into a read-only display.
labelstringDefault "Storage"totalnumberDefault 128Capacity shown in the subline, in unit.
unitstringDefault "GB"warnAtnumberDefault 90From this fill on, the liquid turns red.
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.

