Surfacesstable
Tide
Wavy edge
A wavy, slowly drifting contour for any card, section or image.
edge="all"Card
edge="bottom"Section
edge="x"Customize
Contourthe edge of the box itself moves
edge12 px
amplitude140 px
wavelength1.00
speedpausedstrokeUsage
import { Tide } from "zerogravity/tide"
<Tide>
<Card />
</Tide>Generated from the controls above. Only props that differ from their defaults are shown.
Props
| Property | Type | Default | Description |
|---|---|---|---|
edge | "all" | "top" | "bottom" | "left" | "right" | "x" | "y" | "all" | Edge (card). |
amplitude | number | 12 | Amplitude. Range 0 to 40 px. |
wavelength | number | 140 | Wavelength. Range 40 to 400 px. |
speed | number | 1 | Speed. Range 0 to 4. |
paused | boolean | false | Paused. |
stroke | string | null | null | Stroke. |
children | ReactNode | — | Whatever gets the contour. It stays fully interactive. |
disabled | boolean | false | Hold a static wavy contour. |
respectReducedMotion | boolean | true | Hold the static contour when the user asks for less motion. |
Dependencies
0 external runtime dependencies
Ships with nothing but React.