soralabs

Text Underline

Text 8

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

    234
  • Dia Text Reveal

    Dia Text Reveal

    150
  • Dock Nav

    Dock Nav

    146
  • Text Reveal Block

    Text Reveal Block

    115
  • Pixelated Image Reveal

    Pixelated Image Reveal

    98
  • Text Roll

    Text Roll

    62
  • Custom Cursor

    Custom Cursor

    50
  • Text Reveal (Mask)

    Text Reveal (Mask)

    30

More in Text

View all
  • Vertical Cut Reveal Characters

    Vertical Cut Reveal Characters

    112
  • Rainbow Text Effect

    Rainbow Text Effect

    47
  • NeonRGBTextEffect

    NeonRGBTextEffect

    144
  • Text Highlight

    Text Highlight

    73
  • Motion Blur Text

    Motion Blur Text

    39
  • Apple Hello Effect

    Apple Hello Effect

    623
  • Aero Hero-3

    Aero Hero-3

    579
  • Vapour Text Effect

    Vapour Text Effect

    2K