{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "navigation-09",
  "type": "registry:block",
  "description": "Docs layout with a searchable sidebar of collapsible sections, active page marker and article content.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/designali/blocks/navigation/navigation-09.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport {\n  ChevronRight,\n  Search,\n} from \"@designali/icons\"\n\nimport { cn } from \"@workspace/ui/lib/utils\"\n\nconst tree = [\n  {\n    title: \"Getting started\",\n    pages: [\"Introduction\", \"Installation\", \"Quickstart\", \"Project structure\"],\n  },\n  {\n    title: \"Core concepts\",\n    pages: [\"Blocks\", \"Theming\", \"Icons\", \"Logos\"],\n  },\n  {\n    title: \"Guides\",\n    pages: [\"Deploy to Vercel\", \"Dark mode\", \"Using with Figma\"],\n  },\n  {\n    title: \"Packages\",\n    pages: [\"@designali/icons\", \"@designali/logos\", \"@designali/vectors\"],\n  },\n]\n\nconst toc = [\"Semantic tokens\", \"Brand colour\", \"Dark mode\", \"Next steps\"]\n\nexport default function Navigation09() {\n  const [openGroups, setOpenGroups] = useState<string[]>([\"Getting started\", \"Core concepts\"])\n  const [page, setPage] = useState(\"Theming\")\n\n  function toggle(title: string) {\n    setOpenGroups((current) =>\n      current.includes(title) ? current.filter((item) => item !== title) : [...current, title]\n    )\n  }\n\n  return (\n    <section className=\"w-full border-y bg-background\">\n      <div className=\"mx-auto grid max-w-7xl md:grid-cols-[240px_1fr] xl:grid-cols-[240px_1fr_200px]\">\n        <aside className=\"border-b p-6 md:border-e md:border-b-0\">\n          <label className=\"flex h-9 items-center gap-2 border px-3 text-sm text-muted-foreground\">\n            <Search className=\"size-4\" />\n            <input\n              placeholder=\"Search docs\"\n              className=\"w-full bg-transparent text-foreground outline-none placeholder:text-muted-foreground\"\n            />\n          </label>\n          <nav className=\"mt-6 space-y-1 text-sm\">\n            {tree.map((group) => {\n              const isOpen = openGroups.includes(group.title)\n              return (\n                <div key={group.title}>\n                  <button\n                    type=\"button\"\n                    onClick={() => toggle(group.title)}\n                    aria-expanded={isOpen}\n                    className=\"flex w-full items-center gap-1.5 py-1.5 font-medium\"\n                  >\n                    <ChevronRight\n                      className={cn(\"size-3.5 transition-transform\", isOpen && \"rotate-90\")}\n                    />\n                    {group.title}\n                  </button>\n                  {isOpen && (\n                    <ul className=\"ms-[7px] mb-2 border-s\">\n                      {group.pages.map((item) => (\n                        <li key={item}>\n                          <button\n                            type=\"button\"\n                            onClick={() => setPage(item)}\n                            className={cn(\n                              \"-ms-px block w-full border-s py-1.5 ps-4 text-start transition-colors\",\n                              page === item\n                                ? \"border-foreground text-foreground\"\n                                : \"border-transparent text-muted-foreground hover:text-foreground\"\n                            )}\n                          >\n                            {item}\n                          </button>\n                        </li>\n                      ))}\n                    </ul>\n                  )}\n                </div>\n              )\n            })}\n          </nav>\n        </aside>\n\n        <article className=\"min-w-0 p-6 md:p-10\">\n          <p className=\"text-sm text-muted-foreground\">Designali docs</p>\n          <h2 className=\"mt-2 text-3xl font-semibold tracking-tight\">{page}</h2>\n          <p className=\"mt-4 max-w-2xl text-muted-foreground\">\n            Every Designali block uses semantic design tokens like bg-background\n            and text-primary, so you can rebrand a whole site by changing a few\n            CSS variables. Light and dark mode come for free.\n          </p>\n          <pre className=\"mt-6 overflow-x-auto border bg-muted/50 p-4 font-mono text-xs leading-relaxed\">\n            {`import { ArrowRight } from \"@designali/icons\"\nimport { Button } from \"@workspace/ui/components/button\"\n\nexport function Cta() {\n  return <Button>Start a project <ArrowRight /></Button>\n}`}\n          </pre>\n          <div className=\"mt-10 flex flex-col gap-3 border-t pt-6 sm:flex-row sm:justify-between\">\n            <a href=\"#\" className=\"border p-4 text-sm hover:bg-muted/50 sm:w-64\">\n              <span className=\"block text-xs text-muted-foreground\">Previous</span>\n              Blocks\n            </a>\n            <a href=\"#\" className=\"border p-4 text-end text-sm hover:bg-muted/50 sm:w-64\">\n              <span className=\"block text-xs text-muted-foreground\">Next</span>\n              Icons\n            </a>\n          </div>\n        </article>\n\n        <aside className=\"hidden border-s p-6 xl:block\">\n          <p className=\"text-xs font-medium tracking-widest text-muted-foreground uppercase\">\n            On this page\n          </p>\n          <ul className=\"mt-4 space-y-2.5 text-sm\">\n            {toc.map((item, index) => (\n              <li key={item}>\n                <a\n                  href=\"#\"\n                  className={cn(\n                    \"hover:text-foreground\",\n                    index === 0 ? \"text-foreground\" : \"text-muted-foreground\"\n                  )}\n                >\n                  {item}\n                </a>\n              </li>\n            ))}\n          </ul>\n        </aside>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "700px"
  },
  "categories": [
    "navigation"
  ]
}