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 px
gap16 px
amplitude620
speed90 px
bandcolorpulseOnHoverUsage
import { Sonar } from "zerogravity/sonar"
<Sonar />Generated from the controls above. Only props that differ from their defaults are shown.
Props
| Property | Type | Default | Description |
|---|---|---|---|
gap | number | 26 | Gap. Range 12 to 70 px. |
amplitude | number | 16 | Shove. Range 0 to 60 px. |
speed | number | 620 | Speed. Range 120 to 1800. |
band | number | 90 | Crest. Range 20 to 240 px. |
color | string | "#8ab4ff" | Dots. |
pulseOnHover | boolean | false | Pulse on hover too. |
children | ReactNode | — | Content laid over the field. |
Dependencies
0 external runtime dependencies
Ships with nothing but React.