Components
Magnet Button
A button that draws nearby floating particles toward its center when hovered, animated with spring motion, for use in interactive interfaces.
Magnet Button is a real, MIT-licensed React + Tailwind UI component from the open-source Kokonut UI library. Run the install command above with the shadcn CLI and it drops the component's actual source straight into your project.
It depends on lucide-react, motion, so make sure those are installed too.
The summary, category and setup steps on this page are written by VintuxAI.
| Category | Components |
|---|---|
| Library | Kokonut UI |
| Dependencies | lucide-react, motion |
npx shadcn@latest add "https://kokonutui.com/r/attract-button.json"How to use it
- Run the install command above — the shadcn CLI drops the real component files into your project.
- Install the dependencies listed below it, if any.
- Import the component and restyle it with your own Tailwind tokens.
Compiled and written by VintuxAI from public sources.
← Back to UI Components