About
An interactive grid of lines that rotate to point toward the cursor, creating a magnetic field effect.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Magnet Lines to your project and fits it to your theme.
Code
How Magnet Lines is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { MagnetLines } from "@/components/ui/magnet-lines";
export default function Default() {
return (
<div className="flex min-h-[500px] w-full items-center justify-center bg-black">
<MagnetLines
rows={9}
columns={9}
containerSize="60vmin"
lineColor="#efefef"
lineWidth="0.8vmin"
lineHeight="5vmin"
baseAngle={0}
/>
</div>
);
}







