{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The page heading: a title, a one-line summary and the action buttons on the right (below on phones).",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "// Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n// Source: packages/compose-gen/specs/parts/page-header.json\n\npackage blocks\n\nimport (\n\t\"github.com/ui8kit/codegen/generated/templ/ui/box\"\n\t\"github.com/ui8kit/codegen/generated/templ/compose\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/text\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// PageHeaderProps are the props of PageHeader; the values are the JSON shapes of the TypeScript props.\ntype PageHeaderProps struct {\n\tTitle any `json:\"title\"`\n\tSummary any `json:\"summary\"`\n\tId any `json:\"id\"`\n\tActions templ.Component `json:\"-\"`\n}\n\n// The page heading: a title, a one-line summary and the action buttons on the right (below on phones).\ntempl PageHeader(p PageHeaderProps) {\n\t{{ vTitle := p.Title }}\n\t{{ vSummary := p.Summary }}\n\t{{ vId := p.Id }}\n\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: \"flex flex-col items-start gap-4 md:flex-row md:items-center md:justify-between\", Attrs: uiutils.Attrs(\"data-slot\", \"page-header\")}}) {\n\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: \"flex min-w-0 flex-col gap-2\"}}) {\n\t\t\t@compose.Title(compose.TitleProps{As: \"1\", Size: \"xl\", Weight: \"bold\", TextProps: text.TextProps{Class: \"m-0\", Attrs: uiutils.Attrs(\"id\", vId)}}) {\n\t\t\t\t{ uiutils.Text(vTitle) }\n\t\t\t}\n\t\t\tif uiutils.T(vSummary) {\n\t\t\t\t@compose.Text(compose.TextProps{TextProps: text.TextProps{Class: \"m-0 text-xs font-medium text-muted-foreground\"}}) {\n\t\t\t\t\t{ uiutils.Text(vSummary) }\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif uiutils.T((p.Actions != nil)) {\n\t\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: \"flex flex-wrap items-center gap-2\"}}) {\n\t\t\t\tif p.Actions != nil {\n\t\t\t\t\t@p.Actions\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n",
      "path": "blocks/page-header.templ",
      "target": "blocks/page-header.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "page-header",
  "registryDependencies": [
    "box",
    "kit-box",
    "kit-text",
    "text",
    "title",
    "utils"
  ],
  "runtime": "templ",
  "title": "Page Header",
  "type": "registry:component"
}
