Magnetic
- from @fancy-ui
- by fancy-ui <https://fancy-ui.rama.app>
A generic wrapper that pulls its child toward the pointer once it enters an activation field larger than the child's own box, and springs back to rest the instant the pointer leaves — a fine-pointer affordance with no touch or keyboard equivalent
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @fancy-ui/magneticLive preview
No live preview has been built for this component yet.
Registry dependencies4
Packages0
No npm packages are installed with it.
