{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The head of an inner page: the heading, one sentence and an optional action.",
  "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-intro.json\n\npackage blocks\n\nimport (\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// PageIntroProps are the props of PageIntro; the values are the JSON shapes of the TypeScript props.\ntype PageIntroProps struct {\n\tId any `json:\"id\"`\n\tTitle any `json:\"title\"`\n\tText any `json:\"text\"`\n\tCta any `json:\"cta\"`\n\tHref any `json:\"href\"`\n\tLevel any `json:\"level\"`\n\tAlign any `json:\"align\"`\n\tTone any `json:\"tone\"`\n\tDensity any `json:\"density\"`\n\tLandmarkLabel any `json:\"landmarkLabel\"`\n}\n\n// The head of an inner page: the heading (h1 on a page of its own), one sentence and, optionally, an action. Axes: align (start, center), tone, density.\ntempl PageIntro(p PageIntroProps) {\n\t{{ vId := p.Id }}\n\t{{ vTitle := p.Title }}\n\t{{ vText := p.Text }}\n\t{{ vCta := p.Cta }}\n\t{{ vHref := p.Href }}\n\t{{ vLevel := uiutils.Def(p.Level, float64(1)) }}\n\t{{ vAlign := uiutils.Def(p.Align, \"start\") }}\n\t{{ vTone := uiutils.Def(p.Tone, \"default\") }}\n\t{{ vDensity := uiutils.Def(p.Density, \"default\") }}\n\t{{ vLandmarkLabel := p.LandmarkLabel }}\n\t@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vText, Heading: map[string]any{\"level\": vLevel}, Align: vAlign, Tone: vTone, Density: vDensity, LandmarkLabel: vLandmarkLabel}) {\n\t\tif uiutils.T(vCta) {\n\t\t\t@ActionGroup(ActionGroupProps{Primary: vCta, PrimaryHref: vHref, Align: vAlign})\n\t\t}\n\t}\n}\n",
      "path": "blocks/page-intro.templ",
      "target": "blocks/page-intro.templ"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "page",
    "kind": "block",
    "tags": [
      "templ",
      "block"
    ]
  },
  "name": "page-intro",
  "registryDependencies": [
    "action-group",
    "section-frame",
    "utils"
  ],
  "runtime": "templ",
  "title": "Page Intro",
  "type": "registry:block"
}
