R=145px · k=0.14Approach & Click
Magnetic Button
Spring-damped cursor pull pill button featuring decoupled inner text parallax and radial XOR glow.
Lightweight wrapper container transforming monochrome feature grids into illuminated spatial workspaces.
Sweep pointer or tap across grid surface to move beam.
Zero external packages needed.
| Prop | Type | Default | Description | Effect |
|---|---|---|---|---|
| spotlightSize | number | 280 | Spotlight beam diameter in pixels. | Resizes beam circle radius. |
| gridSize | number | 28 | Square coordinate grid step in pixels. | Scales structural grid spacing. |
| showGrid | boolean | true | Toggles coordinate hairline overlay mask. | Switches between ambient glow and grid reveal. |
| spotlightColor | string | 'rgba(83, 109, 254, 0.24)' | Radial illumination color string. | Tints spotlight beam. |
Spring-damped cursor pull pill button featuring decoupled inner text parallax and radial XOR glow.
Dynamic width spring capsule gliding smoothly between navigation tabs via scoped layoutId.
Vector atan2 slides glass panel along crossed edge.
Aspect-normalized quad detection stays true on wide cards.
Detects pointer crossing edge via atan2 geometry and slides scrim along exact side.