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

    789
  • lever-switch

    lever-switch

    625
  • 3d button

    3d button

    477
  • bluetooth key

    bluetooth key

    448
  • 3d effect Loader

    3d effect Loader

    150
  • 3 dots loader

    3 dots loader

    142
  • slide glow button

    slide glow button

    123
  • comment reply

    comment reply

    76

More in Buttons

View all
  • Texture Button

    Texture Button

    108
  • Button

    Button

    14
  • Notification Button

    Notification Button

    117
  • HeroUI Button Group

    HeroUI Button Group

    1
  • Base Button

    Base Button

    3
  • Button

    Button

    36
  • App Store Button

    App Store Button

    484
  • Button

    Button

    2