ZeroGravity UI

Surfacesstable

Tide

Wavy edge

A wavy, slowly drifting contour for any card, section or image.

edge="all"

Card

edge="bottom"

Section

Customize

Contourthe edge of the box itself moves
edge
12 pxamplitude
140 pxwavelength
1.00speed
paused
stroke

Usage

TSX
import { Tide } from "zerogravity/tide"

<Tide>
    <Card />
</Tide>

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

Props

9 documented props on Tide
PropertyTypeDefaultDescription
edge"all" | "top" | "bottom" | "left" | "right" | "x" | "y""all"Edge (card).
amplitudenumber12Amplitude. Range 0 to 40 px.
wavelengthnumber140Wavelength. Range 40 to 400 px.
speednumber1Speed. Range 0 to 4.
pausedbooleanfalsePaused.
strokestring | nullnullStroke.
childrenReactNode—Whatever gets the contour. It stays fully interactive.
disabledbooleanfalseHold a static wavy contour.
respectReducedMotionbooleantrueHold the static contour when the user asks for less motion.

Dependencies

0 external runtime dependencies

Ships with nothing but React.