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>
)
}









