kemiljk

Navigation Menu

Navigation

About

A top-level site navigation bar where items are either plain links or triggers that open a mega-menu panel, built on native popover and anchor-positioning instead of a JS positioning library.

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

Code

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

Usage.tsx

import {
  NavigationMenu,
  NavigationMenuContent,
  NavigationMenuItem,
  NavigationMenuLink,
  NavigationMenuTrigger,
} from "@/components/ui/navigation-menu";

export default function NavigationMenuDemo() {
  return (
    <div className="p-8">
      <NavigationMenu aria-label="Product">
        <NavigationMenuItem>
          <NavigationMenuLink href="/pricing">Pricing</NavigationMenuLink>
        </NavigationMenuItem>
        <NavigationMenuItem>
          <NavigationMenuTrigger>Solutions</NavigationMenuTrigger>
          <NavigationMenuContent>
            <NavigationMenuLink href="/solutions/startups">
              For Startups
            </NavigationMenuLink>
            <NavigationMenuLink href="/solutions/enterprise">
              For Enterprise
            </NavigationMenuLink>
          </NavigationMenuContent>
        </NavigationMenuItem>
      </NavigationMenu>
    </div>
  );
}

More by kemiljk

View all
  • Switch

    Switch

    8
  • Color Picker

    Color Picker

    2
  • Combobox

    Combobox

  • Progress

    Progress

  • Toggle

    Toggle

  • Label

    Label

  • Radio Group

    Radio Group

  • Avatar

    Avatar

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