R=145px · k=0.14Approach & Click
Magnetic Button
Spring-damped cursor pull pill button featuring decoupled inner text parallax and radial XOR glow.
Engineered with ResizeObserver Retina DPR capping (<=2x) and intelligent rAF hibernation when cursor rests idle.
Sweep pointer or drag finger across canvas surface to paint trail stream.
Zero external npm packages needed.
| Prop | Type | Default | Description | Effect |
|---|---|---|---|---|
| trailStyle | 'ribbon' | 'dots' | 'ribbon' | Rendering mode for trail vertices (continuous ribbon vs sparks). | Toggles geometric draw path. |
| trailLength | number | 22 | Maximum vertex points retained per trail. | Adjusts tail persistence length. |
| lineWidth | number | 6 | Maximum stroke width at pointer head. | Scales trail thickness. |
| accentColor | string | '#536dfe' | Canvas stroke and particle fill hex color. | Sets trail pigment. |
Spring-damped cursor pull pill button featuring decoupled inner text parallax and radial XOR glow.
Radial light container uncovering masked hairline coordinates cleanly under pointer.
Dynamic width spring capsule gliding smoothly between navigation tabs via scoped layoutId.