Dev Design Library

Magnetic

Button composed with the Magnetic wrapper for cursor-attracted pull.

Magnetic preview
Library
beUI
Framework
React
Type
component
License
MIT
Install
npx shadcn@latest add @beui/magnetic
Files
  • components/motion/magnetic.tsx
  • lib/ease.ts
  • lib/hooks/use-hover-capable.ts
  • lib/utils.ts
Source
https://github.com/starc007/ui-components

Categories

More from beUI