A grid of lines that rotate to face the cursor, creating a magnetic field effect. Perfect for interactive backgrounds and hero sections.
number
9
string
"80vmin"
"#efefef"
"1vmin"
"6vmin"
0
Click on the icon in the top right of the example preview to view the source code for specific variants.
This component is inspired by various open-source projects and patterns. Please verify licenses and implementation details before using in production.
import { MagnetLines } from "@/components/ui/magnet-lines" <MagnetLines rows={9} columns={9} containerSize="60vmin" lineColor="currentColor" lineWidth="0.8vmin" lineHeight="5vmin" baseAngle={0} />