Magnetic button

The button follows your mouse a little and the arrow nudges forward.

Desktop onlyUsed in production
Install
npx finepieces add magnetic-button
Or with the shadcn CLI ›
npx shadcn@latest add https://finepieces.net/r/magnetic-button.json

Move over the button

import { MagneticButton } from "@/components/fine-pieces/magnetic-button";

export default function Example() {
  return (
    <div className="flex h-full min-h-[360px] flex-wrap items-center justify-center gap-4">
      <MagneticButton href="#">Start a project</MagneticButton>
      <MagneticButton href="#" variant="outline">See the work</MagneticButton>
    </div>
  );
}