{
  "component": {
    "id": "navigation-menu",
    "name": "Navigation menu",
    "tier": "pro",
    "exampleId": "navigation-menu",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/navigation-menu-demo.tsx",
    "exportName": "NavigationMenuDemo",
    "sha256": "bb874cabb12c2a81ba6a6f283b5d61432fcc6b6bc4e0cbe80b69a25bb290868c",
    "helperImports": [],
    "directComponentImports": [
      "navigation-menu"
    ],
    "sampleBoundary": "Existing local demo fixture with fictional data and callbacks. No live service, customer data, access key, or Pro source is included."
  },
  "install": {
    "command": "npx shadcn@latest add @tidal-pro/navigation-menu",
    "registryUrl": "https://tidalui.com/r/pro/navigation-menu.json",
    "namespace": "@tidal-pro",
    "access": "pro",
    "sourceDelivery": "server-gated",
    "requiresAuthorization": true,
    "tokenSource": "local-env",
    "tokenEnvName": "TIDALUI_TOKEN",
    "cli": {
      "package": "shadcn",
      "requested": "latest"
    }
  },
  "installPlan": [
    {
      "order": 1,
      "kind": "primary",
      "dependency": "@tidal-pro/navigation-menu",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/navigation-menu",
      "registryUrl": "https://tidalui.com/r/pro/navigation-menu.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/navigation-menu.tsx",
    "exports": [
      "TidalNavigationMenu",
      "TidalNavigationMenuItem"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/navigation-menu.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [],
    "registry": [],
    "additionalRegistry": [],
    "installClosure": [
      "navigation-menu"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/navigation-menu.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/navigation-menu.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/navigation-menu-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "\"use client\";\n\nimport \"./components/ui/tidal.css\";\n\nimport { useLayoutEffect, useRef, useState, type MouseEvent } from \"react\";\n\nimport { TidalNavigationMenu, type TidalNavigationMenuItem } from \"./components/ui/navigation-menu\";\n\nimport \"./components/ui/navigation-menu.css\";\n\n\n\nconst tidalExampleStyles = \".tidal-scope .navigation-menu-demo,\\n.tidal-scope .navigation-menu-demo * {\\n  box-sizing: border-box;\\n}\\n\\n.tidal-scope .navigation-menu-demo {\\n  display: grid;\\n  width: min(100%, 720px);\\n  min-width: 0;\\n  gap: 14px;\\n  padding: clamp(8px, 2.5cqi, 20px);\\n  color: var(--t-ink);\\n  font-family: Inter, ui-sans-serif, system-ui, sans-serif;\\n}\\n\\n.tidal-scope .navigation-menu-demo-preview {\\n  display: grid;\\n  gap: 7px;\\n}\\n\\n.tidal-scope .navigation-menu-demo-preview > span,\\n.tidal-scope .navigation-menu-demo-detail > span {\\n  color: inherit;\\n  font-size: 10px;\\n  font-weight: 750;\\n  letter-spacing: 0.09em;\\n  line-height: 1.35;\\n  text-transform: uppercase;\\n}\\n\\n.tidal-scope .navigation-menu-demo-preview strong {\\n  font-size: 19px;\\n  font-weight: 630;\\n  letter-spacing: -0.025em;\\n  line-height: 1.18;\\n}\\n\\n.tidal-scope .navigation-menu-demo-preview p,\\n.tidal-scope .navigation-menu-demo-detail p,\\n.tidal-scope .navigation-menu-demo-note {\\n  margin: 0;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .navigation-menu-demo-preview p {\\n  color: color-mix(in srgb, var(--t-surface) 72%, transparent);\\n  font-size: 11px;\\n  line-height: 1.45;\\n}\\n\\n.tidal-scope .navigation-menu-demo-detail {\\n  display: grid;\\n  min-width: 0;\\n  gap: 5px;\\n  padding: 18px;\\n  background: var(--t-subtle);\\n  border: 1px solid var(--t-border);\\n  border-radius: 18px;\\n}\\n\\n.tidal-scope .navigation-menu-demo-detail > span {\\n  color: var(--t-muted);\\n}\\n\\n.tidal-scope .navigation-menu-demo-detail strong {\\n  font-size: clamp(18px, 4cqi, 25px);\\n  font-weight: 620;\\n  letter-spacing: -0.03em;\\n  line-height: 1.18;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .navigation-menu-demo-detail p {\\n  color: var(--t-muted);\\n  font-size: 12px;\\n  line-height: 1.5;\\n}\\n\\n.tidal-scope .navigation-menu-demo-note {\\n  padding-top: 10px;\\n  color: var(--t-muted);\\n  border-top: 1px solid var(--t-border);\\n  font-size: 11px;\\n  line-height: 1.45;\\n}\";\n\nconst descriptions: Record<string, string> = {\n  analytics: \"Revenue, retention and product signals.\",\n  automations: \"Rules that keep routine work moving.\",\n  inbox: \"One place for customer conversations.\",\n  guides: \"Practical setup notes for each workflow.\",\n  pricing: \"Compare the sample plan structure.\",\n};\n\nfunction isPlainClick(event: MouseEvent<HTMLAnchorElement>) {\n  return (\n    event.button === 0 &&\n    !event.metaKey &&\n    !event.ctrlKey &&\n    !event.altKey &&\n    !event.shiftKey\n  );\n}\n\nexport function NavigationMenuDemo() {\n  const [openId, setOpenId] = useState<string | null>(\"product\");\n  const [selected, setSelected] = useState(\"analytics\");\n  const detailRef = useRef<HTMLDivElement>(null);\n  const selectionFocusIntent = useRef(false);\n  const selectedLinkWasFocused = useRef(false);\n\n  useLayoutEffect(() => {\n    if (!selectionFocusIntent.current) return;\n    selectionFocusIntent.current = false;\n    const shouldFocus =\n      selectedLinkWasFocused.current ||\n      document.activeElement === document.body;\n    selectedLinkWasFocused.current = false;\n    if (shouldFocus) detailRef.current?.focus({ preventScroll: true });\n  }, [selected, openId]);\n\n  function sampleLink(id: string) {\n    return (event: MouseEvent<HTMLAnchorElement>) => {\n      if (!isPlainClick(event)) return;\n      event.preventDefault();\n      selectionFocusIntent.current = true;\n      selectedLinkWasFocused.current =\n        document.activeElement === event.currentTarget;\n      setSelected(id);\n      setOpenId(null);\n    };\n  }\n\n  const items: readonly TidalNavigationMenuItem[] = [\n    {\n      kind: \"group\",\n      id: \"product\",\n      label: \"Product\",\n      description: \"Explore workspace tools\",\n      destinations: [\n        {\n          id: \"analytics\",\n          label: \"Analytics\",\n          description: descriptions.analytics,\n          href: \"#navigation-menu-detail\",\n          active: selected === \"analytics\",\n          anchorProps: { onClick: sampleLink(\"analytics\") },\n        },\n        {\n          id: \"automations\",\n          label: \"Automations\",\n          description: descriptions.automations,\n          href: \"#navigation-menu-detail\",\n          active: selected === \"automations\",\n          anchorProps: { onClick: sampleLink(\"automations\") },\n        },\n        {\n          id: \"inbox\",\n          label: \"Inbox\",\n          description: descriptions.inbox,\n          href: \"#navigation-menu-detail\",\n          active: selected === \"inbox\",\n          anchorProps: { onClick: sampleLink(\"inbox\") },\n        },\n      ],\n      preview: (\n        <div className=\"navigation-menu-demo-preview\">\n          <span>Workspace</span>\n          <strong>Three connected tools</strong>\n          <p>Open a destination to update the local detail below.</p>\n        </div>\n      ),\n    },\n    {\n      kind: \"group\",\n      id: \"resources\",\n      label: \"Resources\",\n      destinations: [\n        {\n          id: \"guides\",\n          label: \"Guides\",\n          description: descriptions.guides,\n          href: \"#navigation-menu-detail\",\n          active: selected === \"guides\",\n          anchorProps: { onClick: sampleLink(\"guides\") },\n        },\n      ],\n    },\n    {\n      kind: \"link\",\n      id: \"pricing\",\n      label: \"Pricing\",\n      description: descriptions.pricing,\n      href: \"#navigation-menu-detail\",\n      active: selected === \"pricing\",\n      anchorProps: { onClick: sampleLink(\"pricing\") },\n    },\n  ];\n\n  return (\n    <section\n      className=\"navigation-menu-demo\"\n      aria-label=\"Navigation menu preview\"\n    >\n      <TidalNavigationMenu\n        label=\"Sample site\"\n        items={items}\n        openId={openId}\n        onOpenChange={setOpenId}\n      />\n\n      <div\n        ref={detailRef}\n        id=\"navigation-menu-detail\"\n        className=\"navigation-menu-demo-detail\"\n        role=\"region\"\n        aria-label=\"Selected destination detail\"\n        tabIndex={-1}\n      >\n        <span>Selected destination</span>\n        <strong>\n          {\n            items\n              .flatMap((item) =>\n                item.kind === \"group\" ? item.destinations : [item],\n              )\n              .find((item) => item.id === selected)?.label\n          }\n        </strong>\n        <p>{descriptions[selected]}</p>\n      </div>\n\n      <p className=\"navigation-menu-demo-note\">\n        Sample navigation. Selection changes only this preview.\n      </p>\n    </section>\n  );\n}\n\nexport default function AgentExample() {\n  return (\n    <div className=\"tidal-scope\" data-theme=\"light\" dir=\"ltr\">\n      <style>{tidalExampleStyles}</style>\n      <NavigationMenuDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/navigation-menu.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "openId",
      "type": "inferred-from-existing-demo",
      "initial": "\"product\"",
      "setter": "setOpenId",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "name": "onOpenChange",
      "nativeType": "component callback",
      "callerFirst": true,
      "preventable": true,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    }
  ],
  "nativeForm": {
    "participates": false,
    "names": [],
    "expectedFormData": {},
    "submitBehavior": "No form submit is present in the existing demo.",
    "resetBehavior": "No reset control is present in the existing demo.",
    "disabledBehavior": "Disabled controls remain excluded from successful native form submission.",
    "readOnlyBehavior": "Read-only controls retain their value and remain inspectable by the consumer."
  },
  "accessibility": {
    "labelSource": "Existing demo label or ARIA prop",
    "semantics": "Preserve the component's native element and the semantics demonstrated by the source fixture.",
    "keyboard": [
      "Tab and Shift+Tab",
      "Enter or Space for native activation",
      "Arrow keys where the component exposes a composite control"
    ],
    "focusReturn": "Verify focus returns to the invoking control after dismissal.",
    "errorAnnouncement": "No error announcement path is present in this demo; the consumer owns validation messaging.",
    "reducedMotion": "Verify prefers-reduced-motion with the existing component transition path.",
    "forcedColors": "Verify visible borders, text, and focus in forced-colors mode."
  },
  "responsive": {
    "widths": [
      320,
      390,
      768,
      1260
    ],
    "shortViewport": "Check the example at a 300px viewport height with keyboard or portal content visible.",
    "overflow": "The page should not gain horizontal overflow; component-local scrolling must remain intentional.",
    "touchTargetMinPx": 44,
    "coarseInputFontPx": 16
  },
  "errors": [
    {
      "fixture": "Exercise the existing demo's error, empty, loading, or invalid fixture.",
      "visibleResult": "The consumer-visible result must remain explicit and must not be replaced by a silent console error.",
      "focusResult": "Focus must remain on the triggering control or move to the announced error according to the native pattern.",
      "ownership": "Consumer-owned sample state only; no network request or customer data is used."
    }
  ],
  "verification": {
    "commands": [
      "npx tsc --noEmit",
      "npx vite build"
    ],
    "lockfile": "Use the consumer project's committed lockfile.",
    "browser": [
      "Chromium 1260x800",
      "Chromium 390x844",
      "Keyboard and reduced-motion pass"
    ]
  },
  "validation": {
    "consumerFixture": {
      "tsc": "pass",
      "viteBuild": "pass",
      "resourceModel": "Generated usage plus only the component files and CSS delivered by the primary item and listed registry dependencies."
    },
    "registryArtifact": "server-gated"
  },
  "exceptions": []
}
