bysages

Link

Navigation

About

An anchor/link element with configurable underline behavior (always, on hover, or never) for inline text navigation.

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

Code

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

Usage.tsx

"use client";

import Link from "@/components/ui/link";

/** Adapted verbatim from the component's own Storybook story
 * (packages/react/src/components/link/link.stories.tsx, "Underlines")
 * — the three underline settings, resting in a line of prose. */
export default function LinkDemo() {
  return (
    <div
      style={{ display: "grid", gap: "var(--bs-space-3)", maxWidth: "28rem" }}
    >
      <p style={{ margin: 0, color: "var(--bs-color-text-secondary)" }}>
        The catalogue{" "}
        <Link href="#" underline="always">
          always underlines
        </Link>{" "}
        — a quiet rail under the ink.
      </p>
      <p style={{ margin: 0, color: "var(--bs-color-text-secondary)" }}>
        The default <Link href="#">underlines on hover</Link> — rest keeps the
        page still.
      </p>
      <p style={{ margin: 0, color: "var(--bs-color-text-secondary)" }}>
        And{" "}
        <Link href="#" underline="none">
          some links never underline
        </Link>{" "}
        — the pigment alone carries them.
      </p>
    </div>
  );
}

Dependencies

More by bysages

View all
  • Switch

    Switch

    17
  • Avatar Group

    Avatar Group

    11
  • Typography

    Typography

    9
  • Spinner

    Spinner

    5
  • Block UI

    Block UI

    1
  • Date Input

    Date Input

  • Grid

    Grid

  • Float Button

    Float Button

More in Navigation

View all
  • Liquid Glass Expandable Sidebar

    Liquid Glass Expandable Sidebar

    76
  • Footer with Big Wordmark

    Footer with Big Wordmark

    40
  • Sidebar

    Sidebar

    392
  • Oversized 404 Numeral

    Oversized 404 Numeral

    78
  • Navbar with Theme Toggle

    Navbar with Theme Toggle

    67
  • NavBar

    NavBar

    2
  • Pagination

    Pagination

    109
  • Tabs like bookmark

    Tabs like bookmark

    82