{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "page-header",
  "title": "Page Header",
  "description": "Top-of-page block with breadcrumb, avatar, title, supporting line and actions.",
  "registryDependencies": [
    "@pestoui/style",
    "@pestoui/utils"
  ],
  "files": [
    {
      "path": "pestoui/components/page-header.tsx",
      "content": "import { cn } from \"@/lib/utils\"\n\n/* Top-of-page block — breadcrumb, leading avatar, large title + supporting\n   line, and an actions cluster that drops below the title on small screens.\n   Rendered as <header>: inside <main> it stays generic, at the top of the\n   document it correctly becomes the banner landmark. */\ntype PageHeaderProps = Omit<\n  React.ComponentProps<\"header\">,\n  \"title\" | \"children\"\n> & {\n  title: React.ReactNode\n  description?: React.ReactNode\n  breadcrumb?: React.ReactNode\n  actions?: React.ReactNode\n  /** Leading slot — avatar, orb, or icon tile. */\n  avatar?: React.ReactNode\n  /** Hairline rule below the block. */\n  border?: boolean\n}\n\nfunction PageHeader({\n  title,\n  description,\n  breadcrumb,\n  actions,\n  avatar,\n  border = false,\n  className,\n  ...props\n}: PageHeaderProps) {\n  return (\n    <header\n      data-slot=\"page-header\"\n      className={cn(\n        \"w-full\",\n        border && \"border-b border-border pb-5\",\n        className\n      )}\n      {...props}\n    >\n      {breadcrumb ? (\n        <div data-slot=\"page-header-breadcrumb\" className=\"mb-3\">\n          {breadcrumb}\n        </div>\n      ) : null}\n\n      <div className=\"flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between sm:gap-6\">\n        <div className=\"flex min-w-0 flex-1 items-center gap-4\">\n          {avatar ? (\n            <div data-slot=\"page-header-avatar\" className=\"shrink-0\">\n              {avatar}\n            </div>\n          ) : null}\n          <div className=\"min-w-0\">\n            <h1\n              data-slot=\"page-header-title\"\n              className=\"text-[1.75rem] leading-tight font-semibold tracking-title text-foreground\"\n            >\n              {title}\n            </h1>\n            {description ? (\n              <p\n                data-slot=\"page-header-description\"\n                className=\"mt-1.5 text-body leading-normal text-pretty text-muted-foreground\"\n              >\n                {description}\n              </p>\n            ) : null}\n          </div>\n        </div>\n\n        {actions ? (\n          <div\n            data-slot=\"page-header-actions\"\n            className=\"flex flex-wrap items-center gap-2 sm:shrink-0 sm:justify-end\"\n          >\n            {actions}\n          </div>\n        ) : null}\n      </div>\n    </header>\n  )\n}\n\nexport { PageHeader }\nexport type { PageHeaderProps }\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component"
}