ZeroGravity UI

Loading & transitionsexperimental

Meniscus

Liquid progress

A vessel that fills with liquid, and keeps sloshing while it waits.

Customize

Vesselleave the value out for an indeterminate fill
0.620value
0.50swell
1.00speed
shape
132 pxsize
color
colorTo
showValue

Usage

TSX
<Meniscus />

Generated from the controls above. Only props that differ from their defaults are shown.

Props

10 documented props on Meniscus
PropertyTypeDefaultDescription
valuenumber0.62Value. Range 0 to 1.
swellnumber0.5Swell. Range 0 to 1.
speednumber1Speed. Range 0.2 to 3.
shape"circle" | "pill" | "square""circle"Shape.
sizenumber132Size. Range 64 to 260 px.
colorstring"#2f8bff"Liquid.
colorTostring | null"#41e0c8"Gradient to.
showValuebooleantrueShow the number.
labelstring"Loading"What the progress bar announces.
childrenReactNode—Replaces the number inside the vessel.

Dependencies

0 external runtime dependencies

Ships with nothing but React.

Experimental: still under evaluation and not part of the published package yet.