MiHCM
navigation/@mihcm/ui·v0.21.0·stable

NavigationMenu

Top-level site navigation bar with dropdown mega-menus. Animated viewport and indicator via Radix.

Live preview

Adjust the controls on the right; the preview and code update in real time.

example.tsxtsx
import { NavigationMenu, NavigationMenuList, NavigationMenuItem, NavigationMenuTrigger, NavigationMenuContent, NavigationMenuLink } from '@mihcm/ui/NavigationMenu';

export function Example() {
  return (
    <NavigationMenu    ></NavigationMenu>
  );
}

Install

Both paths are valid. CLI ships the source into your repo (you own it). Install pins via npm.

npx @mihcm/cli add NavigationMenu
Copies the source into components/ds/NavigationMenu.tsx. You own the file. Use --out to override the directory or --force to overwrite.