Marvel Jesus

Gradient Underline Link

Buttons

About

Text link whose underline draws out from the centre in a gold → green → purple gradient on hover and keyboard focus. Pure CSS transitions, no dependencies, respects reduced motion. Built for a gold-trading education site.

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

Code

How Gradient Underline Link is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { GradientUnderlineLink } from "@/components/ui/gradient-underline-link"

export default function Demo() {
  return (
    <div className="flex min-h-[240px] w-full items-center justify-center bg-black p-10">
      <nav className="flex flex-wrap items-center justify-center gap-8">
        <GradientUnderlineLink href="#">Gradient underline</GradientUnderlineLink>
        <GradientUnderlineLink href="#">component</GradientUnderlineLink>
        <GradientUnderlineLink href="#">Customize to ur fav </GradientUnderlineLink>
        <GradientUnderlineLink href="#">colors</GradientUnderlineLink>
      </nav>
    </div>
  )
}

More by Marvel Jesus

View all
  • Gold Sheen Magnetic Button

    Gold Sheen Magnetic Button

More in Buttons

View all
  • Button

    Button

    14
  • Button

    Button

    34
  • Texture Button

    Texture Button

    92
  • Button

    Button

    64
  • Button Save

    Button Save

    46
  • Button Group

    Button Group

    3
  • Notification Button

    Notification Button

    103
  • Button

    Button