Documentation & Primitives
Magnetic Button
Physics-based magnetic attraction that draws elements toward the cursor on hover.
Interactive Preview
LiveComponent Props
- childrenprop
- strengthprop
- classNameprop
Usage Code
TypeScript / JSXimport { Magnetic } from '@stackvibe-studio/motion';
import { Button } from '@stackvibe-studio/ui';
<Magnetic strength={0.35}>
<Button>Hover Over Me</Button>
</Magnetic>