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

    54
  • Warp Gradient

    Warp Gradient

    48
  • FAQ Section

    FAQ Section

    46
  • QR Code

    QR Code

    46
  • Wave Text

    Wave Text

    37
  • Corner Frame

    Corner Frame

    36
  • Animated Border

    Animated Border

    32
  • Spotlight

    Spotlight

    23

More in Navigation

View all
  • Sidebar

    Sidebar

    233
  • Tabs

    Tabs

    60
  • Newsletter Signup Footer

    Newsletter Signup Footer

    16
  • Progress Bar Stepper

    Progress Bar Stepper

    36
  • Footer 2

    Footer 2

    201
  • Navbar with Theme Toggle

    Navbar with Theme Toggle

    43
  • Pagination

    Pagination

    86
  • Numberless Pagination with Text

    Numberless Pagination with Text

    11