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

    10
  • Color Picker

    Color Picker

    6
  • Combobox

    Combobox

    1
  • Label

    Label

    1
  • Resizable

    Resizable

    1
  • Hover Card

    Hover Card

    1
  • Progress

    Progress

  • Textarea

    Textarea

More in Navigation

View all
  • Footer with Big Wordmark

    Footer with Big Wordmark

    162
  • Liquid Glass Expandable Sidebar

    Liquid Glass Expandable Sidebar

    427
  • Meniscus — Liquid Bottom Navigation Bar

    Meniscus — Liquid Bottom Navigation Bar

    27
  • Sidebar

    Sidebar

    441
  • Tabs

    Tabs

    38
  • Footer Section

    Footer Section

    2
  • Sidebar

    Sidebar

    366
  • Pagination

    Pagination

    119