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

    650
  • Circular Command Menu

    Circular Command Menu

    491
  • Fluid Dropdown

    Fluid Dropdown

    440
  • Trello Kanban Board

    Trello Kanban Board

    332
  • Real time Analytics

    Real time Analytics

    293
  • Shatter Button

    Shatter Button

    276
  • Action Searchbar

    Action Searchbar

    230

More in Buttons

View all
  • Button

    Button

    166
  • Texture Button

    Texture Button

    121
  • Button

    Button

    21
  • Figma File Button

    Figma File Button

    39
  • Native Button

    Native Button

    12
  • Button

    Button

    88
  • HeroUI Button Group

    HeroUI Button Group

    11
  • Great UI Button

    Great UI Button

    19