{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "navigation-08",
  "type": "registry:block",
  "description": "Collapsible app sidebar that toggles between icon rail and labelled view with badges, counts and active state.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/designali/blocks/navigation/navigation-08.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport {\n  ChartColumn as BarChart3,\n  Calendar,\n  ChevronsLeft,\n  ChevronsRight,\n  House,\n  MessageSquare,\n  Settings,\n  Users,\n  Wallet,\n} from \"@designali/icons\"\n\nimport { cn } from \"@workspace/ui/lib/utils\"\n\nimport { CounterNumber } from \"@/registry/designali/ui/counter-number\"\nimport { GridPattern } from \"@/registry/designali/ui/grid-pattern\"\nimport { Logo } from \"@/src/components/logo\"\n\nconst items = [\n  { icon: House, label: \"Home\" },\n  { icon: BarChart3, label: \"Analytics\", badge: \"New\" },\n  { icon: Calendar, label: \"Schedule\" },\n  { icon: MessageSquare, label: \"Messages\", count: 4 },\n  { icon: Users, label: \"Clients\" },\n  { icon: Wallet, label: \"Invoices\" },\n]\n\nexport default function Navigation08() {\n  const [expanded, setExpanded] = useState(false)\n  const [active, setActive] = useState(\"Home\")\n\n  return (\n    <section className=\"w-full bg-muted/40\">\n      <div className=\"mx-auto flex h-[560px] max-w-7xl border-x bg-background\">\n        <aside\n          className={cn(\n            \"flex shrink-0 flex-col border-e transition-[width] duration-300\",\n            expanded ? \"w-56\" : \"w-16\"\n          )}\n        >\n          <div className=\"flex h-16 items-center gap-3 border-b px-4\">\n            <Logo className=\"h-6 w-8 shrink-0\" />\n            {expanded && <span className=\"truncate font-semibold\">Designali Studio</span>}\n          </div>\n          <nav className=\"flex-1 space-y-1 p-3\">\n            {items.map((item) => (\n              <button\n                key={item.label}\n                type=\"button\"\n                onClick={() => setActive(item.label)}\n                className={cn(\n                  \"group relative flex h-10 w-full items-center gap-3 px-2.5 text-sm transition-colors\",\n                  active === item.label\n                    ? \"bg-muted text-foreground\"\n                    : \"text-muted-foreground hover:bg-muted/60 hover:text-foreground\"\n                )}\n              >\n                <item.icon className=\"size-5 shrink-0\" />\n                {expanded ? (\n                  <>\n                    <span className=\"flex-1 truncate text-start\">{item.label}</span>\n                    {item.count && (\n                      <span className=\"bg-foreground px-1.5 text-xs text-background tabular-nums\">\n                        {item.count}\n                      </span>\n                    )}\n                    {item.badge && (\n                      <span className=\"border px-1.5 text-[10px] uppercase\">{item.badge}</span>\n                    )}\n                  </>\n                ) : (\n                  <>\n                    {item.count && (\n                      <span className=\"absolute top-2 right-2 size-1.5 rounded-full bg-foreground\" />\n                    )}\n                    <span className=\"pointer-events-none absolute start-full z-10 ms-3 hidden border bg-popover px-2 py-1 text-xs whitespace-nowrap text-popover-foreground group-hover:block\">\n                      {item.label}\n                    </span>\n                  </>\n                )}\n              </button>\n            ))}\n          </nav>\n          <div className=\"space-y-1 border-t p-3\">\n            <button\n              type=\"button\"\n              className=\"flex h-10 w-full items-center gap-3 px-2.5 text-sm text-muted-foreground hover:text-foreground\"\n            >\n              <Settings className=\"size-5 shrink-0\" />\n              {expanded && \"Settings\"}\n            </button>\n            <button\n              type=\"button\"\n              onClick={() => setExpanded(!expanded)}\n              aria-label={expanded ? \"Collapse sidebar\" : \"Expand sidebar\"}\n              className=\"flex h-10 w-full items-center gap-3 px-2.5 text-sm text-muted-foreground hover:text-foreground\"\n            >\n              {expanded ? (\n                <ChevronsLeft className=\"size-5 shrink-0\" />\n              ) : (\n                <ChevronsRight className=\"size-5 shrink-0\" />\n              )}\n              {expanded && \"Collapse\"}\n            </button>\n          </div>\n        </aside>\n\n        <div className=\"min-w-0 flex-1 p-6 md:p-10\">\n          <p className=\"text-xs tracking-widest text-muted-foreground uppercase\">{active}</p>\n          <h2 className=\"mt-2 text-2xl font-semibold tracking-tight\">Good morning, Ali</h2>\n          <div className=\"mt-8 grid gap-4 sm:grid-cols-3\">\n            {[\"Projects this week\", \"Unpaid invoices\", \"New clients\"].map((label, index) => (\n              <div key={label} className=\"border p-5\">\n                <p className=\"text-xs text-muted-foreground\">{label}</p>\n                <CounterNumber\n                  value={[38, 6, 12][index] ?? 0}\n                  size=\"lg\"\n                  className=\"mt-2 block text-2xl font-semibold\"\n                />\n              </div>\n            ))}\n          </div>\n          <div className=\"relative mt-4 h-40 overflow-hidden border\">\n            <GridPattern width={48} height={48} className=\"stroke-muted\" />\n          </div>\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "600px"
  },
  "categories": [
    "navigation"
  ]
}