⚡
Documentation & Primitives

Magnetic Button

Physics-based magnetic attraction that draws elements toward the cursor on hover.

Interactive Preview

Live

Component Props

  • childrenprop
  • strengthprop
  • classNameprop

Usage Code

TypeScript / JSX
import { Magnetic } from '@stackvibe-studio/motion';
import { Button } from '@stackvibe-studio/ui';

<Magnetic strength={0.35}>
  <Button>Hover Over Me</Button>
</Magnetic>