A magnetic button that drifts toward the cursor on a spring and snaps back on leave. Takes all Button props plus a strength value; static for reduced motion.
npx shadcn@latest add @minidev/magnetic-cta
Loading the source for magnetic-cta…
Registry Items
magnetic-cta
Configuration
Name
magnetic-cta
Type
Component
Description
A magnetic button that drifts toward the cursor on a spring and snaps back on leave. Takes all Button props plus a strength value; static for reduced motion.
Files · 1
Dependencies
npm packages
motion
Registry items
https://ui.minidev.pro/r/button.json
Registry Items
magnetic-cta
Configuration
Name
magnetic-cta
Type
Component
Description
A magnetic button that drifts toward the cursor on a spring and snaps back on leave. Takes all Button props plus a strength value; static for reduced motion.