{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Breadcrumbs over the badge, the heading and the lead; with one large figure, a note card or four key facts at the end.",
  "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/organisms/page-trail.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\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// PageTrailProps are the props of PageTrail; the values are the JSON shapes of the TypeScript props.\ntype PageTrailProps struct {\n\tId any `json:\"id\"`\n\tTitle any `json:\"title\"`\n\tLead any `json:\"lead\"`\n\tBadge any `json:\"badge\"`\n\tLabel any `json:\"label\"`\n\tCrumbs any `json:\"crumbs\"`\n\tExtras any `json:\"extras\"`\n\tAside any `json:\"aside\"`\n\tLevel any `json:\"level\"`\n\tTone any `json:\"tone\"`\n\tLandmarkLabel any `json:\"landmarkLabel\"`\n}\n\n// The head of an inner page with breadcrumbs. Axes: aside (none, figure: one large figure such as a count or a total, note: a small card with a glyph such as a delivery promise or a document version, facts: four key facts in two columns), tone.\ntempl PageTrail(p PageTrailProps) {\n\t{{ vId := p.Id }}\n\t{{ vTitle := p.Title }}\n\t{{ vLead := uiutils.Def(p.Lead, \"\") }}\n\t{{ vBadge := uiutils.Def(p.Badge, \"\") }}\n\t{{ vLabel := p.Label }}\n\t{{ vCrumbs := p.Crumbs }}\n\t{{ vExtras := p.Extras }}\n\t{{ vAside := uiutils.Def(p.Aside, \"none\") }}\n\t{{ vLevel := uiutils.Def(p.Level, float64(1)) }}\n\t{{ vTone := uiutils.Def(p.Tone, \"default\") }}\n\t{{ vLandmarkLabel := p.LandmarkLabel }}\n\t{{ vTitleId := any(uiutils.Add(vId, \"-title\")) }}\n\t@compose.Block(compose.BlockProps{BoxProps: box.BoxProps{Tag: \"section\", Class: uiutils.S(uiutils.Cnv(\"py-8\", uiutils.Cond(uiutils.T(uiutils.Eq(vTone, \"muted\")), \"bg-muted\", \"\"))), Attrs: uiutils.Attrs(\"aria-labelledby\", uiutils.Cond(uiutils.T(vLandmarkLabel), nil, vTitleId), \"data-tone\", vTone, \"data-aside\", vAside, \"aria-label\", vLandmarkLabel, \"data-slot\", \"section\")}}) {\n\t\t@compose.Container(compose.ContainerProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv(\"mx-auto w-full max-w-6xl px-4\", \"flex flex-col gap-6\")), Attrs: uiutils.Attrs(\"data-slot\", \"container\")}}) {\n\t\t\tif uiutils.Gt(uiutils.Len(vCrumbs), float64(0)) {\n\t\t\t\t@PageCrumbs(PageCrumbsProps{Label: vLabel, Crumbs: vCrumbs, LandmarkLabel: vLandmarkLabel})\n\t\t\t}\n\t\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(vAside, \"facts\")), \"grid grid-cols-1 items-center gap-8 lg:grid-cols-2\", \"flex flex-col gap-6 md:flex-row md:items-end md:justify-between\"))}}) {\n\t\t\t\t@compose.Stack(compose.StackProps{Gap: \"4\", Align: \"start\", BoxProps: box.BoxProps{Class: \"min-w-0\"}}) {\n\t\t\t\t\t@SectionHeader(SectionHeaderProps{TitleId: vTitleId, Title: vTitle, Heading: map[string]any{\"level\": vLevel, \"badge\": vBadge}, Lead: vLead})\n\t\t\t\t}\n\t\t\t\tif !uiutils.Eq(vAside, \"none\") {\n\t\t\t\t\t@PageAside(PageAsideProps{Extras: vExtras, Mode: vAside})\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n",
      "path": "blocks/page-trail.templ",
      "target": "blocks/page-trail.templ"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "page",
    "kind": "block",
    "tags": [
      "templ",
      "block"
    ]
  },
  "name": "page-trail",
  "registryDependencies": [
    "block",
    "box",
    "container",
    "kit-box",
    "page-aside",
    "page-crumbs",
    "section-header",
    "stack",
    "utils"
  ],
  "runtime": "templ",
  "title": "Page Trail",
  "type": "registry:block"
}
