kevingirelli

Nav Link

Navigation

About

A navigation link that marks the current page using aria-current and a data-active attribute, with asChild support for router link components.

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

Code

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

Usage.tsx

import { NavLink } from "@/components/ui/nav-link";

export default function NavLinkDemo() {
  return (
    <nav aria-label="Ship" className="flex flex-wrap gap-1">
      <NavLink active href="#nav-charts">
        Charts
      </NavLink>
      <NavLink href="#nav-crew">Crew</NavLink>
      <NavLink href="#nav-cargo">Cargo</NavLink>
      <NavLink href="#nav-log">Log</NavLink>
    </nav>
  );
}

Dependencies

More by kevingirelli

View all
  • Aurora

    Aurora

    166
  • QR Code

    QR Code

    140
  • FAQ Section

    FAQ Section

    98
  • Animated Border

    Animated Border

    88
  • Warp Gradient

    Warp Gradient

    71
  • Corner Frame

    Corner Frame

    71
  • Wave Text

    Wave Text

    63
  • Spotlight

    Spotlight

    52

More in Navigation

View all
  • Footer with Big Wordmark

    Footer with Big Wordmark

    165
  • Liquid Glass Expandable Sidebar

    Liquid Glass Expandable Sidebar

    439
  • Meniscus — Liquid Bottom Navigation Bar

    Meniscus — Liquid Bottom Navigation Bar

    33
  • Sidebar

    Sidebar

    444
  • Tabs

    Tabs

    38
  • Pagination

    Pagination

    121
  • Sidebar

    Sidebar

    367
  • Stacked Circular Footer

    Stacked Circular Footer

    469