{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "navigation-menu",
  "title": "NavigationMenu",
  "description": "A row of links where some open a panel of further links, each with a line of description: the navigation of a site with more pages than fit in a bar.",
  "dependencies": [
    "@base-ui/react@^1.8.0"
  ],
  "registryDependencies": [
    "@ouro/lib-class-name-check",
    "@ouro/lib-cn",
    "@ouro/lib-current-path",
    "@ouro/lib-env",
    "@ouro/lib-floating",
    "@ouro/lib-page-direction",
    "@ouro/lib-portal-container",
    "@ouro/lib-refs",
    "@ouro/lib-router-link",
    "@ouro/lib-use-dev-messages"
  ],
  "files": [
    {
      "path": "registry/ouro/components/ouro/navigation-menu/navigation-menu.tsx",
      "content": "\"use client\";\n\nimport { NavigationMenu as BaseNavigationMenu } from \"@base-ui/react/navigation-menu\";\nimport { useRef, useState, type JSX, type MouseEvent as ReactMouseEvent, type ReactNode, type Ref } from \"react\";\nimport { useAppearanceClassNameCheck } from \"@/registry/ouro/lib/ouro/class-name-check\";\nimport { cn } from \"@/registry/ouro/lib/ouro/cn\";\nimport { currentHref, samePath } from \"@/registry/ouro/lib/ouro/current-path\";\nimport { floatingPortalClass } from \"@/registry/ouro/lib/ouro/floating\";\nimport { RouterLink } from \"@/registry/ouro/lib/ouro/router-link\";\nimport { useDevWarnings } from \"@/registry/ouro/lib/ouro/use-dev-messages\";\nimport { PortalScope, usePortalContainer } from \"@/registry/ouro/lib/ouro/portal-container\";\nimport { PageDirection } from \"@/registry/ouro/lib/ouro/page-direction\";\nimport { useMergedRef } from \"@/registry/ouro/lib/ouro/refs\";\n\n/** One link inside a NavigationMenu panel. */\nexport interface NavigationMenuLink {\n  /** The link's text: \"Browse\". */\n  label: string;\n  /** Where it goes. Internal paths go through `OuroProvider`'s `linkComponent` (your router's link). */\n  href: string;\n  /**\n   * A line under the label that says what is there: \"Everything you have saved.\"\n   *\n   * @claim \"A line under the label that\" registry/ouro/components/ouro/navigation-menu/navigation-menu.test.tsx verify:testExists(registry/ouro/components/ouro/navigation-menu/navigation-menu.test.tsx::NavigationMenu > opens a panel of links on click, with each link's description)\n   */\n  description?: string | undefined;\n  /** Marks this link as the current page, when the menu's `currentPath` cannot tell. */\n  current?: boolean | undefined;\n}\n\n/** A NavigationMenu item that is a link to a page. */\nexport interface NavigationMenuLinkItem {\n  /** The link's text: \"Pricing\". */\n  label: string;\n  /** Where it goes. Internal paths go through `OuroProvider`'s `linkComponent` (your router's link). */\n  href: string;\n  /** Marks this link as the current page, when the menu's `currentPath` cannot tell. */\n  current?: boolean | undefined;\n  /** Not with `href`. An item is a link (`href`) or a panel (`links`, `content`). */\n  links?: never;\n  /** Not with `href`. An item is a link (`href`) or a panel (`links`, `content`). */\n  content?: never;\n}\n\n/**\n * What every panel item has: its button's text, and how its links are laid out.\n *\n * @claim \"What every panel item has: its\" registry/ouro/components/ouro/navigation-menu/navigation-menu.test.tsx verify:testExists(registry/ouro/components/ouro/navigation-menu/navigation-menu.test.tsx::NavigationMenu > renders a named nav with a button for each panel and a link for each page)\n * @claim \"What every panel item has: its\" registry/ouro/components/ouro/navigation-menu/navigation-menu.test-d.ts verify:fileLine(registry/ouro/components/ouro/navigation-menu/navigation-menu.test-d.ts, /expectTypeOf<\\{\\slabel:\\s\"Recipes\";\\scolumns:\\s3;\\slinks:\\s\\[\\]\\s\\}>\\(\\)\\.not\\.toExtend<NavigationMenuItem>/)\n */\ninterface NavigationMenuPanelBase {\n  /** The button's text: \"Recipes\". */\n  label: string;\n  /**\n   * The panel's links in one column or two, from 640px up; a phone always shows one.\n   * @default 1\n   * @claim \"The panel's links in one column\" registry/ouro/components/ouro/navigation-menu/navigation-menu.test.tsx verify:testExists(registry/ouro/components/ouro/navigation-menu/navigation-menu.test.tsx::NavigationMenu panels and easing > shows a panel's content beside its links, in two columns)\n   * @claim \"The panel's links in one column\" registry/ouro/components/ouro/navigation-menu/navigation-menu.test.tsx verify:testExists(registry/ouro/components/ouro/navigation-menu/navigation-menu.test.tsx::NavigationMenu panels and easing > stacks the content above the links on a phone)\n   */\n  columns?: 1 | 2 | (number & { \"Use columns={1} or columns={2}\": never }) | undefined;\n  /** Not with a panel. To link the section's own page, make it the panel's first link. */\n  href?: never;\n}\n\n/**\n * A NavigationMenu item that opens a panel: a list of `links`, with any `content` at its\n * start, such as a featured `Card` beside a two-column grid of links. A panel needs one of\n * the two.\n * @claim \"A NavigationMenu item that opens a\" registry/ouro/components/ouro/navigation-menu/navigation-menu.test.tsx verify:testExists(registry/ouro/components/ouro/navigation-menu/navigation-menu.test.tsx::NavigationMenu > opens a panel of links on click, with each link's description)\n * @claim \"A NavigationMenu item that opens a\" registry/ouro/components/ouro/navigation-menu/navigation-menu.test.tsx verify:testExists(registry/ouro/components/ouro/navigation-menu/navigation-menu.test.tsx::NavigationMenu panels and easing > shows a panel's content beside its links, in two columns)\n * @claim \"A panel needs one of the\" registry/ouro/components/ouro/navigation-menu/navigation-menu.test-d.ts verify:fileLine(registry/ouro/components/ouro/navigation-menu/navigation-menu.test-d.ts, /\\{\\slabel:\\s\"Recipes\"\\s\\}>\\(\\)\\.not\\.toExtend<NavigationMenuItem>/)\n */\nexport type NavigationMenuPanelItem = NavigationMenuPanelBase &\n  (\n    | {\n        /**\n         * The links in the panel, each with an optional `description`.\n         *\n         * @claim \"The links in the panel, each\" registry/ouro/components/ouro/navigation-menu/navigation-menu.test.tsx verify:testExists(registry/ouro/components/ouro/navigation-menu/navigation-menu.test.tsx::NavigationMenu > opens a panel of links on click, with each link's description)\n         */\n        links: readonly NavigationMenuLink[];\n        /**\n         * Anything else in the panel, before its links (above them on a phone): a featured\n         * `Card`, an image, a line of text. A link in it closes the panel when it is followed.\n         */\n        content?: ReactNode;\n      }\n    | {\n        links?: undefined;\n        /**\n         * The panel's content, when it has no list of links. A link in it closes the panel when it is followed.\n         *\n         * @claim \"The panel's content, when it has\" registry/ouro/components/ouro/navigation-menu/navigation-menu.test.tsx verify:testExists(registry/ouro/components/ouro/navigation-menu/navigation-menu.test.tsx::NavigationMenu panels and easing > shows a panel's content beside its links, in two columns)\n         */\n        content: ReactNode;\n      }\n  );\n\n/** One item of a NavigationMenu: a link (`href`), or a button that opens a panel (`links`, `content`). */\nexport type NavigationMenuItem = NavigationMenuLinkItem | NavigationMenuPanelItem;\n\n/** Props for {@link NavigationMenu}. */\nexport interface NavigationMenuProps {\n  /** Names the navigation for screen readers (\"Main\"). It is not shown. */\n  label: string;\n  /** The row's items, in order: links, and buttons that open a panel of links. */\n  items: readonly NavigationMenuItem[];\n  /**\n   * The path of the page being shown, from your router (`useLocation().pathname`, or\n   * `usePathname()` in Next.js). The link to that path gets `aria-current=\"page\"`, in the row\n   * or in a panel; else the longest link above it, the section the page is in, gets\n   * `aria-current=\"true\"`, so a screen reader hears one current page.\n   */\n  currentPath?: string | undefined;\n  /** Layout only: margins, grid placement (`ms-4`). Appearance classes warn in development. */\n  className?: string | undefined;\n  ref?: Ref<HTMLElement> | undefined;\n\n  /** Not a prop. Ouro UI uses `items`; a panel's links go in an item's `links`. */\n  links?: { 'Use items={[{ label: \"Recipes\", links: [...] }, { label: \"Pricing\", href: \"/pricing\" }]}': never };\n  /** Not a prop. Ouro UI uses `currentPath`: `<NavigationMenu currentPath={pathname}>`. */\n  pathname?: { \"Use <NavigationMenu currentPath={pathname}>\": never };\n  /** Not a prop. The menu is a row; for a column of links use `Sidebar`. */\n  orientation?: { \"Use <Sidebar> for a column of links\": never };\n  /** Not rendered. The menu is data: `items={[{ label: \"Recipes\", links: [...] }, { label: \"Pricing\", href: \"/pricing\" }]}`. */\n  children?: { 'Use items={[{ label: \"Recipes\", links: [...] }, { label: \"Pricing\", href: \"/pricing\" }]}': never };\n}\n\n// Class strings are literal so the app's Tailwind finds them when it compiles.\n\n// A row item, link or button: 44px with 16px text on a coarse pointer at every width, 36px\n// with 14px text with a fine one. The current page, or the section it is in, is underlined in the primary colour, as in\n// FamilyBar; forced colours keep the underline.\nconst rowItem =\n  \"press relative m-0 box-border inline-flex h-11 min-w-11 pointer-fine:h-9 cursor-pointer items-center justify-center gap-1.5 whitespace-nowrap \" +\n  \"rounded-ouro-md border-0 forced-colors:border forced-colors:border-solid bg-transparent px-3 font-[inherit] text-base pointer-fine:text-sm leading-5 font-medium text-muted-foreground no-underline \" +\n  \"select-none touch-manipulation [-webkit-tap-highlight-color:transparent] \" +\n  \"pointer-fine:hover:bg-accent pointer-fine:hover:text-accent-foreground data-popup-open:bg-accent data-popup-open:text-accent-foreground \" +\n  \"aria-[current=page]:font-semibold aria-[current=page]:text-foreground aria-[current=true]:font-semibold aria-[current=true]:text-foreground data-current:text-foreground \" +\n  \"aria-[current=page]:underline aria-[current=true]:underline decoration-primary decoration-2 underline-offset-5 [text-decoration-skip-ink:none] \" +\n  \"motion-safe:active:scale-(--ouro-press-scale) outline-ring -outline-offset-2 focus-visible:outline-2 focus-visible:outline-solid\";\n\n// The theme's enter and exit curve.\nconst easeOut = \"ease-(--ouro-ease-out)\";\n\n// Opened or closed from the keyboard, nothing animates (`data-ouro-instant`).\nconst instantly = \"data-ouro-instant:transition-none\";\n\n// The chevron turns when its panel is open; with reduced motion it turns without a transition.\nconst chevron = cn(\"inline-flex motion-safe:transition-[rotate] motion-safe:duration-(--ouro-duration-base) data-popup-open:rotate-180\", easeOut, instantly);\n\n// The popup follows the open panel. Its box and place change at once between panels, since\n// layout does not animate; it opens with a scale and fade from its button and closes faster.\n// Reduced motion keeps only the fade.\nconst positioner = \"box-border h-(--positioner-height) w-(--positioner-width) max-w-(--available-width)\";\nconst popup = cn(\n  \"relative box-border h-(--popup-height) w-(--popup-width) origin-(--transform-origin) rounded-ouro-lg bg-popover text-popover-foreground outline-none \" +\n  \"ring-1 ring-border/60 shadow-(--shadow-lg) \" +\n  \"transition-opacity duration-(--ouro-duration-base) data-starting-style:opacity-0 data-ending-style:opacity-0 data-ending-style:duration-(--ouro-duration-fast) \" +\n    \"motion-safe:transition-[opacity,scale] motion-safe:data-starting-style:scale-96 motion-safe:data-ending-style:scale-96\",\n  easeOut,\n  instantly,\n);\n// A panel: nearly the screen's width on a phone, as wide as its links from 640px; wider with\n// content or two columns.\nconst panel = cn(\n  \"box-border h-full w-[calc(100vw-2rem)] p-2 sm:w-max sm:min-w-64 sm:max-w-md data-wide:sm:max-w-2xl \" +\n    \"transition-opacity duration-(--ouro-duration-base) data-starting-style:opacity-0 data-ending-style:opacity-0\",\n  easeOut,\n  instantly,\n);\n// A link in a panel: a full-width row, which highlights while pressed instead of scaling.\nconst panelLink =\n  \"relative m-0 box-border flex min-h-11 pointer-fine:min-h-9 flex-col justify-center gap-0.5 rounded-ouro-md px-3 py-2 text-base pointer-fine:text-sm leading-5 \" +\n  \"text-popover-foreground no-underline select-none touch-manipulation [-webkit-tap-highlight-color:transparent] \" +\n  \"transition-colors duration-(--ouro-duration-fast) ease-[ease] pointer-fine:hover:bg-accent pointer-fine:hover:text-accent-foreground active:bg-accent active:text-accent-foreground \" +\n  \"outline-ring -outline-offset-2 focus-visible:outline-2 focus-visible:outline-solid\";\n// A panel link's label, which carries the current page's mark, so that its line of description stays plain.\nconst panelLabel = \"decoration-primary decoration-2 underline-offset-5 [text-decoration-skip-ink:none]\";\n\nconst example =\n  '<NavigationMenu label=\"Main\" items={[{ label: \"Recipes\", links: [{ label: \"Browse\", href: \"/recipes\" }] }, { label: \"Pricing\", href: \"/pricing\" }]} />';\n\n/**\n * A row of links where some open a panel of further links, each with a line of\n * description: the navigation of a site with more pages than fit in a bar. Panels open on\n * hover or click, move between each other without closing, and close on Escape, on an\n * outside press and when a link is chosen. The current page is marked `aria-current=\"page\"`, and the link of the section it is in `aria-current=\"true\"`, both underlined in the primary colour, distinct from hover and press highlights.\n * Built on Base UI's Navigation Menu.\n *\n * Use `Navbar` instead when every item is a plain link; it also collapses into a drawer on\n * a phone, which this row does not. Use `Menu` for actions rather than pages, and `Sidebar`\n * for a column of links.\n * In a right-to-left page (`dir=\"rtl\"` on `<html>`) ArrowLeft moves to the next button.\n *\n *\n * @group Navigation\n * @claim \"In a right-to-left page\" registry/ouro/components/ouro/navigation-menu/navigation-menu.test.tsx verify:testExists(registry/ouro/components/ouro/navigation-menu/navigation-menu.test.tsx::NavigationMenu > moves to the next button with ArrowLeft in a right-to-left page, where it sits on the left)\n * @see https://ui.ouroboros.bot/docs/navigation-menu\n *\n * @example\n * <NavigationMenu\n *   label=\"Main\"\n *   items={[\n *     {\n *       label: \"Recipes\",\n *       links: [\n *         { label: \"Browse\", href: \"/recipes\", description: \"Everything you have saved.\" },\n *         { label: \"Import\", href: \"/recipes/import\", description: \"Bring one in from a link.\" },\n *       ],\n *     },\n *     { label: \"Pricing\", href: \"/pricing\" },\n *   ]}\n *   currentPath={pathname}\n * />\n * @claim \"A row of links where some\" registry/ouro/components/ouro/navigation-menu/navigation-menu.test.tsx verify:testExists(registry/ouro/components/ouro/navigation-menu/navigation-menu.test.tsx::NavigationMenu > opens a panel of links on click, with each link's description)\n * @claim \"Panels open on hover or click\" registry/ouro/components/ouro/navigation-menu/navigation-menu.test.tsx verify:testExists(registry/ouro/components/ouro/navigation-menu/navigation-menu.test.tsx::NavigationMenu > opens on hover with a mouse and switches panels)\n * @claim \"Panels open on hover or click\" registry/ouro/components/ouro/navigation-menu/navigation-menu.test.tsx verify:testExists(registry/ouro/components/ouro/navigation-menu/navigation-menu.test.tsx::NavigationMenu > opens a panel of links on click, with each link's description)\n * @claim \"Panels open on hover or click\" registry/ouro/components/ouro/navigation-menu/navigation-menu.test.tsx verify:testExists(registry/ouro/components/ouro/navigation-menu/navigation-menu.test.tsx::NavigationMenu > closes on Escape and returns focus to the button)\n * @claim \"Panels open on hover or click\" registry/ouro/components/ouro/navigation-menu/navigation-menu.test.tsx verify:testExists(registry/ouro/components/ouro/navigation-menu/navigation-menu.test.tsx::NavigationMenu > closes when a link in the panel is chosen)\n * @claim \"Panels open on hover or click\" https://base-ui.com/react/components/navigation-menu verify:urlOk(https://base-ui.com/react/components/navigation-menu)\n */\nexport function NavigationMenu(props: NavigationMenuProps): JSX.Element {\n  const {\n    label,\n    items,\n    currentPath,\n    className,\n    ref,\n    // Guard props (hint types), dropped here so they never reach the DOM.\n    links,\n    pathname,\n    orientation,\n    children,\n  } = props;\n  useAppearanceClassNameCheck(\n    \"NavigationMenu\",\n    className,\n    process.env.NODE_ENV !== \"production\"\n      ? (token: string) => `remove \"${token}\"; NavigationMenu sets its own look`\n      : /* istanbul ignore next @preserve -- production only */ \"\",\n  );\n  useDevWarnings(\n    \"NavigationMenu\",\n    process.env.NODE_ENV !== \"production\"\n      ? () => {\n          // The types rule this shape out; an untyped caller can still pass it.\n          const loose = items as ReadonlyArray<{ label: string; href?: string; links?: unknown; content?: unknown }>;\n          const both = loose.find((item) => (item.links !== undefined || item.content !== undefined) && item.href !== undefined);\n          const empty = loose.find((item) => item.href === undefined && item.links === undefined && item.content === undefined);\n          return [\n            !label && [\"label is required; it names the navigation for screen readers\", '<NavigationMenu label=\"Main\">'],\n            empty && [`\"${empty.label}\" has no href, links or content`, `{ label: \"${empty.label}\", href: \"/…\" } or { label: \"${empty.label}\", links: [{ label, href }] }`],\n            both && [\n              `\"${both.label}\" has both href and a panel, and renders as a panel`,\n              `{ label: \"${both.label}\", links: [{ label: \"All ${both.label.toLowerCase()}\", href: \"${String(both.href)}\" }, …] }`,\n            ],\n            links !== undefined && [\"links is not a prop\", example],\n            pathname !== undefined && [\"pathname is not a prop\", \"<NavigationMenu currentPath={pathname}>\"],\n            orientation !== undefined && [\"orientation is not a prop; the menu is a row\", \"<Sidebar> for a column of links\"],\n            children !== undefined && [\"children are not rendered; the menu is data\", example],\n          ];\n        }\n      : /* istanbul ignore next @preserve -- production only */ undefined,\n  );\n\n  return <NavigationMenuView label={label} items={items} currentPath={currentPath} className={className} ref={ref} />;\n}\n\n/** Props for {@link NavigationMenuView}: NavigationMenu's, and what Navbar needs to measure its row. */\ninterface NavigationMenuViewProps {\n  label: string;\n  items: readonly NavigationMenuItem[];\n  currentPath?: string | undefined;\n  className?: string | undefined;\n  ref?: Ref<HTMLElement> | undefined;\n  /** Keeps the row on one line, so its list overflows when it does not fit. */\n  oneLine?: boolean | undefined;\n  /** The row's list, to measure. */\n  listRef?: Ref<HTMLUListElement> | undefined;\n}\n\n/** A panel item, by its `links` or `content`; an untyped item with `href` too is still a panel. */\nfunction isPanel(item: NavigationMenuItem): item is NavigationMenuPanelItem {\n  return item.links !== undefined || item.content !== undefined;\n}\n\n/**\n * The NavigationMenu without its development checks: Navbar's row.\n *\n * @internal Shared by NavigationMenu and Navbar; apps use those.\n */\nexport function NavigationMenuView(props: NavigationMenuViewProps): JSX.Element {\n  const { label, items, currentPath, className, ref, oneLine, listRef } = props;\n  const nav = useRef<HTMLElement>(null);\n  const mergedNav = useMergedRef(ref, nav);\n  // Controlled, so a link in a panel's content can close it.\n  const [value, setValue] = useState<number | null>(null);\n  const [instant, setInstant] = useState(false);\n\n  // A link's own `current` wins; otherwise the path decides, across the row and the panels.\n  const all = items.flatMap((item): ReadonlyArray<{ href: string; current?: boolean | undefined }> =>\n    isPanel(item) ? (item.links ?? []) : [item],\n  );\n  const marked = all.some((link) => link.current)\n    ? undefined\n    : currentHref(\n        all.map((link) => link.href),\n        currentPath,\n      );\n  const isCurrent = (link: { href: string; current?: boolean | undefined }) => Boolean(link.current) || link.href === marked;\n  // The page itself is the current page; a link above it, the section it is in, is current but not the page.\n  const currentOf = (link: { href: string; current?: boolean | undefined }) =>\n    !isCurrent(link) ? undefined : link.current || samePath(link.href, currentPath) ? (\"page\" as const) : (\"true\" as const);\n  const closeOnLink = (event: ReactMouseEvent) => {\n    if ((event.target as Element).closest(\"a[href]\")) setValue(null);\n  };\n\n  const portal = usePortalContainer(\"NavigationMenu\");\n  const directed = (\n    <BaseNavigationMenu.Root\n      ref={mergedNav}\n      data-ouro=\"navigation-menu\"\n      aria-label={label}\n      value={value}\n      onValueChange={(next, { event }) => {\n        // A key press, or the click a key press makes (detail 0), opens and closes at once.\n        setInstant(event.type === \"keydown\" || (event.type === \"click\" && (event as MouseEvent).detail === 0));\n        setValue(next as number | null);\n      }}\n      className={cn(\"min-w-0\", className)}\n    >\n      <BaseNavigationMenu.List ref={listRef} className={cn(\"m-0 flex list-none items-center gap-1 p-0\", oneLine ? \"flex-nowrap\" : \"flex-wrap\")}>\n        {items.map((item, index) =>\n          isPanel(item) ? (\n            <BaseNavigationMenu.Item key={index} value={index}>\n              <BaseNavigationMenu.Trigger data-current={item.links?.some(isCurrent) ? \"\" : undefined} data-ouro-control=\"navigation-menu\" data-ouro-part=\"trigger\" className={rowItem}>\n                {item.label}\n                <BaseNavigationMenu.Icon data-ouro-instant={instant ? \"\" : undefined} className={chevron}>\n                  <svg aria-hidden=\"true\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.5\" strokeLinecap=\"round\" strokeLinejoin=\"round\" className=\"size-3.5\">\n                    <path d=\"m4 6 4 4 4-4\" />\n                  </svg>\n                </BaseNavigationMenu.Icon>\n              </BaseNavigationMenu.Trigger>\n              <BaseNavigationMenu.Content\n                data-ouro-instant={instant ? \"\" : undefined}\n                data-wide={item.content !== undefined || item.columns === 2 ? \"\" : undefined}\n                className={panel}\n              >\n                <div className={cn(\"grid gap-2\", item.content !== undefined && item.links !== undefined && \"sm:grid-cols-[minmax(0,14rem)_minmax(0,1fr)]\")}>\n                  {item.content !== undefined && (\n                    // A link in the content closes the panel, as the list's links do.\n                    <div data-ouro-navigation-menu-content=\"\" onClick={closeOnLink} className=\"min-w-0\">\n                      {item.content}\n                    </div>\n                  )}\n                  {item.links !== undefined && (\n                    <ul className={cn(\"m-0 grid list-none gap-1 p-0\", item.columns === 2 && \"sm:grid-cols-2\")}>\n                      {item.links.map((link, position) => (\n                        <li key={position}>\n                          <BaseNavigationMenu.Link\n                            render={<RouterLink href={link.href} />}\n                            active={currentOf(link) === \"page\"}\n                            aria-current={currentOf(link)}\n                            closeOnClick\n                            data-ouro-control=\"navigation-menu\"\n                            data-ouro-part=\"panel-link\"\n                            className={panelLink}\n                          >\n                            <span className={cn(\"font-medium\", panelLabel, isCurrent(link) && \"font-semibold underline\")}>{link.label}</span>\n                            {link.description !== undefined && <span className=\"text-sm leading-5 text-muted-foreground\">{link.description}</span>}\n                          </BaseNavigationMenu.Link>\n                        </li>\n                      ))}\n                    </ul>\n                  )}\n                </div>\n              </BaseNavigationMenu.Content>\n            </BaseNavigationMenu.Item>\n          ) : (\n            <BaseNavigationMenu.Item key={index} value={index}>\n              <BaseNavigationMenu.Link\n                render={<RouterLink href={item.href} />}\n                active={currentOf(item) === \"page\"}\n                aria-current={currentOf(item)}\n                data-ouro-control=\"navigation-menu\"\n                data-ouro-part=\"link\"\n                className={rowItem}\n              >\n                {item.label}\n              </BaseNavigationMenu.Link>\n            </BaseNavigationMenu.Item>\n          ),\n        )}\n      </BaseNavigationMenu.List>\n      <BaseNavigationMenu.Portal {...portal} data-ouro=\"navigation-menu-portal\" className={floatingPortalClass}>\n        <PortalScope>\n          <BaseNavigationMenu.Positioner sideOffset={8} collisionPadding={16} className={positioner}>\n            <BaseNavigationMenu.Popup data-ouro=\"navigation-menu-popup\" data-ouro-instant={instant ? \"\" : undefined} className={popup}>\n              <BaseNavigationMenu.Viewport className=\"relative h-full w-full overflow-hidden rounded-[inherit]\" />\n            </BaseNavigationMenu.Popup>\n          </BaseNavigationMenu.Positioner>\n        </PortalScope>\n      </BaseNavigationMenu.Portal>\n    </BaseNavigationMenu.Root>\n  );\n  return <PageDirection of={nav}>{directed}</PageDirection>;\n}\n",
      "type": "registry:ui",
      "target": "@components/ouro/navigation-menu/navigation-menu.tsx"
    }
  ],
  "docs": "A row of links where some open a panel of further links, each with a line of description: the navigation of a site with more pages than fit in a bar. Import: import { NavigationMenu } from \"@/components/ouro/navigation-menu/navigation-menu\", with @/components replaced by your components alias (aliases.components in components.json, such as ~/components). Also installed: the helpers it imports in lib/ouro. Needs ouro-base in your stylesheet: add that item once per app, from the same place as this one, if you have not. Docs: https://ui.ouroboros.bot/docs/navigation-menu.md Ouro UI v1.3.257.",
  "type": "registry:ui"
}