{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "app-header",
  "title": "App header",
  "description": "Dashboard top bar: brand, pill navigation, and a slot for the account menu.",
  "files": [
    {
      "path": "registry/dgit/blocks/app-header.tsx",
      "content": "import type { ReactNode } from \"react\";\nimport { cn } from \"@/lib/utils\";\n\n/**\n * The top bar of a dashboard: brand on the left, pill navigation in the middle (its own row on\n * phones), and whatever goes on the right (usually <AccountMenu />).\n *\n *   <AppHeader brand={<Logo />} nav={links.map(l => <NavLink className={({isActive}) => navPill(isActive)} …/>)}>\n *     <AccountMenu name={me.name} email={me.email} onSignOut={signOut} />\n *   </AppHeader>\n */\nexport function AppHeader({ brand, nav, children, className }: { brand: ReactNode; nav?: ReactNode; children?: ReactNode; className?: string }) {\n  // Three columns from sm up, the outer two equal, so the nav sits in the middle of the page\n  // however wide the brand side gets. On phones the nav takes its own row.\n  return (\n    <header className={cn(\"grid grid-cols-[1fr_auto] items-center gap-x-6 gap-y-3 px-4 py-[14px] sm:grid-cols-[1fr_auto_1fr] sm:px-6 sm:py-[18px]\", className)}>\n      <div className=\"flex min-w-0 items-center justify-self-start\">{brand}</div>\n      {nav ? (\n        <nav className=\"order-last col-span-2 flex gap-1 overflow-x-auto sm:order-none sm:col-span-1\" aria-label=\"Main\">\n          {nav}\n        </nav>\n      ) : (\n        <span className=\"hidden sm:block\" />\n      )}\n      <div className=\"flex min-w-0 items-center justify-self-end gap-2\">{children}</div>\n    </header>\n  );\n}\n\n/** Classes for one navigation pill; the current page is filled. */\nexport function navPill(active: boolean): string {\n  return cn(\n    \"rounded-full px-3.5 py-1.5 text-sm font-medium whitespace-nowrap no-underline transition-colors\",\n    active ? \"bg-accent text-foreground\" : \"text-muted-foreground hover:text-foreground\",\n  );\n}\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:block"
}