{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A split hero with figures, faces, small cards or a quote under the lead, beside a picture, a floating card, a picture grid or plan cards.",
  "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/hero-split.json\n\npackage blocks\n\nimport (\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// HeroSplitProps are the props of HeroSplit; the values are the JSON shapes of the TypeScript props.\ntype HeroSplitProps struct {\n\tId any `json:\"id\"`\n\tTitle any `json:\"title\"`\n\tLead any `json:\"lead\"`\n\tBadge any `json:\"badge\"`\n\tLevel any `json:\"level\"`\n\tActions any `json:\"actions\"`\n\tContent any `json:\"content\"`\n\tExtra any `json:\"extra\"`\n\tMedia any `json:\"media\"`\n\tMediaSide any `json:\"mediaSide\"`\n\tTone any `json:\"tone\"`\n\tImage any `json:\"image\"`\n\tImageAlt any `json:\"imageAlt\"`\n\tLandmarkLabel any `json:\"landmarkLabel\"`\n}\n\n// A split hero: a badge, the heading, a lead, an extra under it and one or two actions, beside the media. Axes: extra (stats: three figures, avatars: faces and a proof line, minis: two small feature cards, quote: a quote over three figures, none), media (picture, card: a floating card on the picture, grid: four pictures with captions, plans: two plan cards on the picture), mediaSide, tone.\ntempl HeroSplit(p HeroSplitProps) {\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{{ vLevel := uiutils.Def(p.Level, float64(1)) }}\n\t{{ vActions := p.Actions }}\n\t{{ vContent := p.Content }}\n\t{{ vExtra := uiutils.Def(p.Extra, \"stats\") }}\n\t{{ vMedia := uiutils.Def(p.Media, \"picture\") }}\n\t{{ vMediaSide := uiutils.Def(p.MediaSide, \"end\") }}\n\t{{ vTone := uiutils.Def(p.Tone, \"default\") }}\n\t{{ vImage := p.Image }}\n\t{{ vImageAlt := p.ImageAlt }}\n\t{{ vLandmarkLabel := p.LandmarkLabel }}\n\t@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vLead, Heading: map[string]any{\"badge\": vBadge, \"level\": vLevel}, Layout: \"split\", Media: map[string]any{\"show\": true, \"side\": vMediaSide}, Tone: vTone, LandmarkLabel: vLandmarkLabel, Aside: heroSplitFill1(p, vTitle, vContent, vMedia, vImage, vImageAlt)}) {\n\t\t@HeroSplitExtras(HeroSplitExtrasProps{Content: vContent, Extra: vExtra})\n\t\t@ActionGroup(ActionGroupProps{Primary: uiutils.Get(vActions, \"cta\"), PrimaryHref: uiutils.Get(vActions, \"href\"), Secondary: uiutils.Cond(uiutils.T(uiutils.Eq(uiutils.Get(vActions, \"mode\"), \"two\")), uiutils.Get(vActions, \"secondary\"), nil), SecondaryHref: uiutils.Get(vActions, \"secondaryHref\")})\n\t}\n}\n\ntempl heroSplitFill1(p HeroSplitProps, vTitle any, vContent any, vMedia any, vImage any, vImageAlt any) {\n\t@HeroSplitMedia(HeroSplitMediaProps{Content: vContent, Alt: uiutils.Cond(uiutils.T(vImageAlt), vImageAlt, vTitle), Image: vImage, Media: vMedia})\n}\n",
      "path": "blocks/hero-split.templ",
      "target": "blocks/hero-split.templ"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "hero",
    "kind": "block",
    "tags": [
      "templ",
      "block"
    ]
  },
  "name": "hero-split",
  "registryDependencies": [
    "action-group",
    "hero-split-extras",
    "hero-split-media",
    "section-frame",
    "utils"
  ],
  "runtime": "templ",
  "title": "Hero Split",
  "type": "registry:block"
}
