Utkarsh Pandey

magnet button

Buttons

About

This is a dark rounded button with glowing edges that, when clicked, triggers an animation resembling a moving polar magnetic field radiating outward.

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

Code

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

Usage.tsx

import { Component } from "@/components/ui/magnet-button";

export default function DemoOne() {
  return <Component />;
}

More by Utkarsh Pandey

View all
  • ai loader

    ai loader

    766
  • lever-switch

    lever-switch

    574
  • 3d button

    3d button

    449
  • bluetooth key

    bluetooth key

    421
  • 3d effect Loader

    3d effect Loader

    140
  • 3 dots loader

    3 dots loader

    135
  • slide glow button

    slide glow button

    106
  • comment reply

    comment reply

    70

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