jay sharma

Highlight Button

Buttons 80

About

A button with a mouse-following highlight that darkens the surface as the cursor moves, fades in a soft border on hover, and bursts a radial ripple from the exact click point. Theme-aware, with overridable highlight color, size, and border color.

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

Code

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

Usage.tsx

"use client";

import { HighlightButton } from "@/components/ui/highlight-button";

export default function Default() {
  return (
    <div className="flex min-h-screen w-full flex-wrap items-center justify-center gap-6 bg-background p-12">
      <HighlightButton>Hover Me</HighlightButton>
      <HighlightButton
        highlightColor="rgba(59, 130, 246, 0.65)"
        borderColor="rgba(59, 130, 246, 0.8)"
      >
        Blue Glow
      </HighlightButton>
      <HighlightButton
        highlightColor="rgba(168, 85, 247, 0.65)"
        borderColor="rgba(168, 85, 247, 0.8)"
      >
        Purple Glow
      </HighlightButton>
      <HighlightButton
        highlightColor="rgba(34, 197, 94, 0.65)"
        borderColor="rgba(34, 197, 94, 0.8)"
      >
        Green Glow
      </HighlightButton>
    </div>
  );
}

Dependencies

More by jay sharma

View all
  • Live Orb

    Live Orb

    325
  • Chrome Button

    Chrome Button

    183
  • Frame Button

    Frame Button

    133
  • Shader Metal

    Shader Metal

    78
  • ASCII Fluid

    ASCII Fluid

    75
  • Motion Button

    Motion Button

    61
  • Brutal Button

    Brutal Button

    61
  • Grid Button

    Grid Button

    53

More in Buttons

View all
  • Button Group

    Button Group

    2
  • App Store Button

    App Store Button

    457
  • Eclipse Button

    Eclipse Button

    6
  • Texture Button

    Texture Button

    96
  • Button

    Button

    5
  • Button Save

    Button Save

    47
  • Base Button

    Base Button

    3
  • HeroUI Button Group

    HeroUI Button Group