soralabs

Text Underline

Text 10

About

An animated inline link with a CSS-only underline that slides through on hover.

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

Code

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

Usage.tsx

import { TextUnderline } from "@/components/ui/text-underline";

export default function Default() {
  return (
    <div className="flex min-h-[320px] w-full items-center justify-center bg-background px-6 text-foreground">
      <p className="text-2xl leading-relaxed text-foreground">
        Shop the{" "}
        <TextUnderline href="#" underlineColor="brand" underlineHeight="medium">
          Performance Collection
        </TextUnderline>{" "}
        built for speed.
      </p>
    </div>
  );
}

Dependencies

More by soralabs

View all
  • Scroll Gallery

    Scroll Gallery

    373
  • Dia Text Reveal

    Dia Text Reveal

    205
  • Dock Nav

    Dock Nav

    170
  • Text Reveal Block

    Text Reveal Block

    143
  • Pixelated Image Reveal

    Pixelated Image Reveal

    121
  • Text Roll

    Text Roll

    70
  • Custom Cursor

    Custom Cursor

    62
  • Cursor Bubble

    Cursor Bubble

    47

More in Text

View all
  • Astryx Chat Tokenized Text

    Astryx Chat Tokenized Text

    15
  • Vertical Cut Reveal Characters

    Vertical Cut Reveal Characters

    135
  • Scroll Fill Headline

    Scroll Fill Headline

    67
  • Blur Reveal

    Blur Reveal

    401
  • Apple Hello Effect

    Apple Hello Effect

    692
  • Rainbow Text Effect

    Rainbow Text Effect

    61
  • Text Reveal

    Text Reveal

    31
  • NeonRGBTextEffect

    NeonRGBTextEffect

    156