About
Interactive magnetic button that follows cursor movement with smooth spring physics from Unlumen UI.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Unlumen Magnetic Button to your project and fits it to your theme.
Code
How Unlumen Magnetic Button is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import { MagneticButton } from "@/components/ui/unlumen-magnetic-button";
export default function MagneticButtonDemo() {
return (
<div className="flex flex-wrap items-center justify-center gap-6 p-16">
<MagneticButton>Deploy</MagneticButton>
<MagneticButton>Preview</MagneticButton>
<MagneticButton>Cancel</MagneticButton>
</div>
);
}















