All components
magnetic-action

Magnetic action

Lets a primary action lean toward a nearby pointer and settle cleanly on release.

  • Keyboard ready
  • Reduced motion
  • TypeScript
Installnpx shadcn@latest add https://motion-lexicon.pages.dev/r/magnetic-action.json