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

    790
  • lever-switch

    lever-switch

    631
  • 3d button

    3d button

    494
  • bluetooth key

    bluetooth key

    456
  • 3d effect Loader

    3d effect Loader

    155
  • 3 dots loader

    3 dots loader

    145
  • slide glow button

    slide glow button

    125
  • comment reply

    comment reply

    76

More in Buttons

View all
  • Button

    Button

    20
  • Button

    Button

    3
  • Button Group

    Button Group

    18
  • Button

    Button

    149
  • Icon Label Subtext Button

    Icon Label Subtext Button

    69
  • Button

    Button

    9
  • Button

    Button

    37
  • Texture Button

    Texture Button

    113