Motion
Magnetic
Primary buttons lean toward a nearby mouse. Not on touch, not with reduced motion.
import { Magnetic, useMagnetic } from "@percentsa/motion";Examples
Code
export function MagneticExample() {
const t = useT();
return (
<Magnetic>
<Button size="lg">{t("Start a project", "ابدأ مشروعًا")}</Button>
</Magnetic>
);
}