Magnetic Grid

A magnetic grid field that bends around the cursor with a subtle neon glow.

Customize

ADVERT

Overview

Magnetic Grid renders a crisp WebGL lattice that warps around the pointer like a magnetic field. The glow stays controlled, the nodes shimmer gently, and the grid keeps a premium, technical feel without overpowering content. Use it for hero backgrounds, product launches, or data-driven storytelling.

Props

Use the props below to customise the magnetic grid in your own React application.

NameTypeRequiredDefaultDescription
classNamestringNoundefinedOptional class name for layout control.
minHeightnumber | stringNo420Minimum height for the component container. Accepts a number (pixels) or any valid CSS height string.
gridScalenumberNo1Overall grid density and scale multiplier.
distortionnumberNo0.75Strength of the magnetic field distortion (0 to 1).
glownumberNo0.65Glow intensity applied to grid lines and nodes (0 to 1).
nodesbooleanNotrueWhether to show glowing grid intersections.
vignettebooleanNotrueWhether to apply a soft vignette on the edges.
colorAstringNo#7CF7FFPrimary grid color.
colorBstringNo#FF6BDESecondary grid color for the gradient blend.
bgstringNo#080A10Background color behind the grid.
mouseRefReact.MutableRefObject<{ x: number; y: number }>NoundefinedOptional pointer ref for external cursor tracking, values in the range [-1, 1].
onClick(event: React.MouseEvent) => voidNoundefinedOptional click handler for the root element.

Related React components

More components from the same category or sharing similar tags.