Kousthubha Yadiyala

Magnetbutton

Buttons

About

hovering magnetic button

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Magnetbutton to your project and fits it to your theme.

Code

How Magnetbutton is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { MagnetButton } from "@/components/ui/magnetbutton";

export default function MagnetButtonDemo() {
  return (
    <div className="flex items-center justify-center min-h-screen bg-background">
      <MagnetButton>
        <button className="px-8 py-4 rounded-full bg-primary text-primary-foreground font-semibold text-sm tracking-wide">
          Hover me
        </button>
      </MagnetButton>
    </div>
  )
}

Dependencies

More by Kousthubha Yadiyala

View all
  • Morphing Card Stack

    Morphing Card Stack

    1.8K
  • Animated Menu

    Animated Menu

    603
  • Circular Command Menu

    Circular Command Menu

    466
  • Fluid Dropdown

    Fluid Dropdown

    421
  • Trello Kanban Board

    Trello Kanban Board

    317
  • Real time Analytics

    Real time Analytics

    287
  • Shatter Button

    Shatter Button

    276
  • Action Searchbar

    Action Searchbar

    221

More in Buttons

View all
  • Button Save

    Button Save

    46
  • Button

    Button

    20
  • Eclipse Button

    Eclipse Button

    5
  • Button

    Button

    6
  • Button

    Button

    14
  • Button Group

    Button Group

    37
  • Button

    Button

    32
  • Split Button

    Split Button

    32