Skip to content

Fluid Meter

A circular gauge fills with two gently moving layers of liquid.

LIVE PREVIEWInteract with the component
Just React. No extra dependencies.

Copy the component and its CSS module into your project.

CSS Modules

Usage

Matches your current playground settings.

jsx
import FluidMeter from "./FluidMeter";
export default function Example() {
return (
<FluidMeter
value={64}
min={0}
max={100}
label={"Capacity"}
color={"#7fa6c0"}
background={"#192530"}
size={230}
speed={5}
/>
);
}

Using Fluid Meter

Set min and max to describe the measurement's range, then pass the current reading through value.

Use label to name the measurement and valueLabel when the visible reading needs a custom unit or format. size controls the circular gauge's diameter.

Props

NameTypeRequiredDefaultDescription
valuenumberNo0Current numeric value, clamped to the configured range.
minnumberNo0Minimum range value.
maxnumberNo100Maximum range value, constrained to exceed min.
labelstringNo""Visible and accessible meter label.
valueLabelstringNoundefinedOptional formatted value to display instead of a computed percentage.
colorstringNo"#8aacc6"Liquid colour.
backgroundstringNo"#19222d"Unfilled tank colour.
sizenumberNo220Preferred diameter in pixels, capped to container width.
speednumberNo5Wave duration in seconds.
classNamestringNo""Additional classes merged with the component styles.
styleCSSPropertiesNoundefinedInline styles for caller-defined sizing, typography, and appearance.

Related components

Fine radial segments illuminate around a precise numeric readout.

Signal Bars

Feedback

Sculpted signal bars rise and fall in a staggered rhythmic wave.

A quiet spectrum of rounded bars rises and falls in a travelling rhythm.

Orbit Loader

Feedback

Three tilted rings turn around a pin of light while content loads.