R=145px · k=0.14Approach & Click
Magnetic Button
Spring-damped cursor pull pill button featuring decoupled inner text parallax and radial XOR glow.
Unlike single-image zoom scripts, this component magnifies arbitrary React nodes, SVG engineering schematics, and product photography cleanly.
Sweep pointer over blueprint frame or toggle loupe silhouette shape.
Zero external npm dependencies.
| Prop | Type | Default | Description | Effect |
|---|---|---|---|---|
| zoomFactor | number | 2.2 | Optical zoom scale factor applied inside lens. | Scales magnification multiplier. |
| lensSize | number | 136 | Magnifier lens aperture width/height in pixels. | Adjusts loupe viewport size. |
| lensShape | 'circle' | 'rounded' | 'circle' | Circular glass loupe or rounded-square inspector. | Changes aperture boundary mask. |
| accentColor | string | '#536dfe' | Ring border and crosshair HUD tint. | Styles lens ring & crosshair. |
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.