{
  "id": "nav-group",
  "name": "NavGroup",
  "level": "molecule",
  "status": "stable",
  "purpose": "Gathers related navigation rows into one group, with or without a title.",
  "description": "Gathers related navigation rows into one group. The title is optional, and a collapsible group lets people fold it away. In the rail an app has a single untitled group; titled groups live in the panel a rail row opens.",
  "role": "navigation",
  "import": "@rrios-forge/ui/molecules/nav-group",
  "exports": [
    "NavGroup",
    "navGroupVariants"
  ],
  "source": "packages/ui/src/molecules/nav-group",
  "axes": [],
  "needs": [
    {
      "need": "App frame / navigation",
      "answer": "**The rail that peeks (ADR-044) — the default and the recommendation.** `PageShell` (defaults: `sidebarMode=\"rail\"`, `sidebarPresentation=\"inset\"`, `mobileNav=\"tabs\"`) + `SidebarSection aria-label` + ONE untitled `NavGroup`: home, search, the rooms, settings — same size, same gap. Wrap every `NavItem` in `PageShell.RailPeek` and compose its panel with `PageShell.PeekHeader` / `PeekFacts` / `PeekLinks`. Search is a button row opening `CommandMenu` (⌘K); settings' peek holds the quick controls; phones get `PageShell.MobileTabBar` (≤ 5). No `TopBar` in an app frame. Opt-ins only when a product needs them: the labelled panel (`sidebarMode=\"auto\"`, ⌘\\\\ collapse, ADR-040), `island`/`column` (ADR-025), the bubble (`mobileNav=\"bubble\"`)"
    }
  ],
  "patterns": [],
  "a11yExceptions": [],
  "decisions": [
    {
      "id": "ADR-009",
      "title": "Editorial Frame: PageShell v3 + new `TopBar` molecule"
    },
    {
      "id": "ADR-010",
      "title": "PageShell v4: bottom dock + mobile floating bubble"
    },
    {
      "id": "ADR-011",
      "title": "PageShell v5: adaptive lateral sidebar + mobile nav bubble"
    },
    {
      "id": "ADR-014",
      "title": "PageShell: Apple Mail / macOS Big Sur visual register"
    },
    {
      "id": "ADR-044",
      "title": "Navigation is a rail that peeks"
    }
  ],
  "stories": [
    {
      "name": "Playground",
      "id": "components-molecules-navgroup--playground",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-molecules-navgroup--playground",
      "frame": "/iframe.html?id=components-molecules-navgroup--playground&viewMode=story"
    },
    {
      "name": "Basic",
      "id": "components-molecules-navgroup--basic",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-molecules-navgroup--basic",
      "frame": "/iframe.html?id=components-molecules-navgroup--basic&viewMode=story"
    },
    {
      "name": "Collapsible",
      "id": "components-molecules-navgroup--collapsible",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-molecules-navgroup--collapsible",
      "frame": "/iframe.html?id=components-molecules-navgroup--collapsible&viewMode=story"
    },
    {
      "name": "With badges",
      "id": "components-molecules-navgroup--with-badges",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-molecules-navgroup--with-badges",
      "frame": "/iframe.html?id=components-molecules-navgroup--with-badges&viewMode=story"
    }
  ],
  "storyFile": "tooling/storybook/stories/components/molecules/nav-group.stories.tsx"
}
