{
  "id": "sidebar-section",
  "name": "SidebarSection",
  "level": "molecule",
  "status": "stable",
  "purpose": "The sidebar's content — in the rail, one group of rows.",
  "description": "Sidebar landmark <aside aria-label> with optional title (header) and footer. Body fills the remaining height; footer pinned at the bottom. Compose NavGroup + NavItem inside. Patterns consulted: Patterns/Navigation · NavigationLayers, Patterns/Page Shells · PageHeader.",
  "role": "navigation",
  "import": "@rrios-forge/ui/molecules/sidebar-section",
  "exports": [
    "SidebarSection",
    "sidebarSectionVariants"
  ],
  "source": "packages/ui/src/molecules/sidebar-section",
  "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-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"
    }
  ],
  "stories": [
    {
      "name": "Playground",
      "id": "components-molecules-sidebarsection--playground",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-molecules-sidebarsection--playground",
      "frame": "/iframe.html?id=components-molecules-sidebarsection--playground&viewMode=story"
    },
    {
      "name": "Product nav",
      "id": "components-molecules-sidebarsection--product-nav",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-molecules-sidebarsection--product-nav",
      "frame": "/iframe.html?id=components-molecules-sidebarsection--product-nav&viewMode=story"
    },
    {
      "name": "Account nav",
      "id": "components-molecules-sidebarsection--account-nav",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-molecules-sidebarsection--account-nav",
      "frame": "/iframe.html?id=components-molecules-sidebarsection--account-nav&viewMode=story"
    },
    {
      "name": "Collapsed preview",
      "id": "components-molecules-sidebarsection--collapsed-preview",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-molecules-sidebarsection--collapsed-preview",
      "frame": "/iframe.html?id=components-molecules-sidebarsection--collapsed-preview&viewMode=story"
    }
  ],
  "storyFile": "tooling/storybook/stories/components/molecules/sidebar-section.stories.tsx"
}
