ZeroGravity UI

Backgroundsstable

Sonar

Shockwave dot field

A dot field that a shockwave crosses whenever the surface is pressed.

Customize

Wavepress the field and a shockwave crosses it
26 pxgap
16 pxamplitude
620speed
90 pxband
color
pulseOnHover

Usage

TSX
import { Sonar } from "zerogravity/sonar"

<Sonar />

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

Props

7 documented props on Sonar
PropertyTypeDefaultDescription
gapnumber26Gap. Range 12 to 70 px.
amplitudenumber16Shove. Range 0 to 60 px.
speednumber620Speed. Range 120 to 1800.
bandnumber90Crest. Range 20 to 240 px.
colorstring"#8ab4ff"Dots.
pulseOnHoverbooleanfalsePulse on hover too.
childrenReactNode—Content laid over the field.

Dependencies

0 external runtime dependencies

Ships with nothing but React.