ComponentsButtonsMagnetic ButtonMagnetic ButtonA button that leans toward the pointer and settles back when it leaves.DependenciesmotionPreviewCodeOpen inHover meInstallation#CLIManualpnpmnpmyarnbunpnpm dlx shadcn@latest add @balick/magnetic-buttonOr pass the full URL: https://ui.balick.me/r/magnetic-button.jsonUsage#import { MagneticButton } from "@/components/ui/magnetic-button" export function Cta() { return <MagneticButton size="lg">Hover me</MagneticButton> }Props#PropTypeDefaultDescriptionstrengthShare of the pointer's distance the button follows, from 0 to 1.number0.3Share of the pointer's distance the button follows, from 0 to 1.maxLargest shift, in pixels.number8Largest shift, in pixels. PreviousHold ButtonNext Ripple Button