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

    607
  • Circular Command Menu

    Circular Command Menu

    469
  • Fluid Dropdown

    Fluid Dropdown

    423
  • Trello Kanban Board

    Trello Kanban Board

    318
  • Real time Analytics

    Real time Analytics

    289
  • Shatter Button

    Shatter Button

    276
  • Action Searchbar

    Action Searchbar

    222

More in Buttons

View all
  • Texture Button

    Texture Button

    95
  • Eclipse Button

    Eclipse Button

    6
  • App Store Button

    App Store Button

    457
  • Button Group

    Button Group

  • Button

    Button

    14
  • Button

    Button

    32
  • Button

    Button

    65
  • HeroUI Button Group

    HeroUI Button Group

    9