Pointerstable
Lodestone
Magnetic buttons that lean toward the pointer but never overlap each other.
Customize
Magnethow each button reacts to a nearby pointer
150 px
radius0.500
strength30 px
maxDisplacement0.160
release0.050
liftLayoutcrowd the buttons to prove they cannot overlap
12 px
minGap4
buttons18 px
spacingUsage
import { Lodestone } from "zerogravity"
<Lodestone>
Get started
</Lodestone>Generated from the controls above. Only props that differ from their defaults are shown.
Props
| Property | Type | Default | Description |
|---|---|---|---|
radius | number | 150 | Radius. Range 40 to 400 px. |
strength | number | 0.5 | Strength. Range 0 to 1. |
maxDisplacement | number | 30 | Max displacement. Range 0 to 80 px. |
release | number | 0.16 | Return speed. Range 0.02 to 1. |
lift | number | 0.05 | Lift. Range 0 to 0.3. |
minGap | number | 12 | Minimum gap. Range 0 to 40 px. |
children | ReactNode | — | Button label. |
Dependencies
0 external runtime dependencies
Ships with nothing but React.