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.9K
  • Animated Menu

    Animated Menu

    637
  • Circular Command Menu

    Circular Command Menu

    484
  • Fluid Dropdown

    Fluid Dropdown

    433
  • Trello Kanban Board

    Trello Kanban Board

    328
  • Real time Analytics

    Real time Analytics

    293
  • Shatter Button

    Shatter Button

    276
  • Action Searchbar

    Action Searchbar

    227

More in Buttons

View all
  • Texture Button

    Texture Button

    108
  • Button

    Button

    14
  • Notification Button

    Notification Button

    117
  • HeroUI Button Group

    HeroUI Button Group

    2
  • Eclipse Button

    Eclipse Button

    44
  • Button Save

    Button Save

    50
  • App Store Button

    App Store Button

    484
  • Base Button

    Base Button

    1