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

    131
  • QR Code

    QR Code

    128
  • FAQ Section

    FAQ Section

    79
  • Animated Border

    Animated Border

    73
  • Warp Gradient

    Warp Gradient

    63
  • Corner Frame

    Corner Frame

    59
  • Wave Text

    Wave Text

    56
  • Spotlight

    Spotlight

    47

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