Motion you can feel.

Open-Source React UI Library with Tunable Spring Physics.

Copy-paste into your project. Built with Framer Motion, Tailwind and TypeScript. Free and open source.

Open-source ·MIT license·Next.js ready
+
+
+
+
Hover near buttons to inspect Hooke's Law attraction
Preset:

Browse by category

How it works

1.

Run the install command.

Add any component directly using the shadcn CLI with your preferred package manager.

2.

The component file lands in your project.

The full TypeScript source code and Tailwind classes are saved in your components directory.

3.

Edit it however you like.

Customize styles, animation springs, or props. You own the code with no runtime package dependency.

terminal & react
# 1. Run the install command
npx shadcn@latest add https://boseui.site/r/magnetic-button.json

# 2. Import into your React component
import { MagneticButton } from "@/components/ui/magnetic-button";

export default function Demo() {
  return <MagneticButton>Click me</MagneticButton>;
}

Frequently asked questions