{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The head of a section: an optional badge, the heading (h1 or h2) with an optional link opposite it, and an optional lead. No wrapper: its parts are children of the section stack.",
  "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/patterns/section-header.json\n    The head of a section: an optional badge, the heading (h1 or h2) with an optional link opposite it, and an optional lead. No wrapper: its parts are children of the section stack.\n    Props (p): titleId, title, heading, action, lead, center. *}\n{var $v_titleId = ($p['titleId'] ?? null)}\n{var $v_title = ($p['title'] ?? '')}\n{var $v_heading = ($p['heading'] ?? null)}\n{var $v_action = ($p['action'] ?? null)}\n{var $v_lead = ($p['lead'] ?? null)}\n{var $v_center = ($p['center'] ?? false)}\n{var $v_level = og_coalesce([og_get($v_heading, ['level']), 2])}\n{var $v_scale = og_coalesce([og_get($v_heading, ['scale']), 'default'])}\n{var $v_hasAction = og_and([og_get($v_action, ['label']), og_get($v_action, ['href'])])}\n{if og_t(og_get($v_heading, ['badge']))}\n  {capture $c_1}\n    {=og_text(og_get($v_heading, ['badge']))}\n  {/capture}\n  {=og_include('compose/Badge.latte', ['variant' => 'outline', 'size' => 'lg', 'class' => og_s((og_t($v_center) ? 'mx-auto w-fit' : 'w-fit')), 'children' => (string) $c_1])|noescape}\n{/if}\n{if og_t(og_and([!(og_eq($v_title, '')), $v_hasAction]))}\n  {capture $c_4}\n    {capture $c_2}\n      {=og_text($v_title)}\n    {/capture}\n    {=og_include('compose/Title.latte', ['as' => og_i($v_level), 'size' => og_s((og_t(og_eq($v_level, 1)) ? '5xl' : 'xl')), 'weight' => 'semibold', 'class' => og_s((og_t(og_eq($v_scale, 'display')) ? 'text-6xl tracking-tight md:text-8xl' : (og_t(og_eq($v_level, 1)) ? 'leading-tight' : 'leading-7'))), 'attrs' => og_attrs(['id', $v_titleId]), 'children' => (string) $c_2])|noescape}\n    {capture $c_3}\n      {=og_text(og_get($v_action, ['label']))}\n    {/capture}\n    {=og_include('compose/Link.latte', ['href' => og_url(og_s(og_get($v_action, ['href']))), 'variant' => 'default', 'class' => og_s(og_cnv([og_preset('blocks/presets/defaults.json', ['text', 'tiny']), 'shrink-0 font-medium leading-5'])), 'attrs' => og_attrs(['data-slot', 'section-action']), 'children' => (string) $c_3])|noescape}\n  {/capture}\n  {=og_include('compose/Group.latte', ['gap' => '4', 'align' => 'center', 'justify' => 'between', 'class' => 'w-full flex-wrap', 'attrs' => og_attrs(['data-slot', 'section-header']), 'children' => (string) $c_4])|noescape}\n{/if}\n{if og_t(og_and([!(og_eq($v_title, '')), !(og_t($v_hasAction))]))}\n  {capture $c_5}\n    {=og_text($v_title)}\n  {/capture}\n  {=og_include('compose/Title.latte', ['as' => og_i($v_level), 'size' => og_s((og_t(og_eq($v_level, 1)) ? '5xl' : 'xl')), 'weight' => 'semibold', 'class' => og_s((og_t(og_eq($v_scale, 'display')) ? 'text-6xl tracking-tight md:text-8xl' : (og_t(og_eq($v_level, 1)) ? 'leading-tight' : 'leading-7'))), 'attrs' => og_attrs(['id', $v_titleId, 'data-slot', 'section-header']), 'children' => (string) $c_5])|noescape}\n{/if}\n{if og_t(og_and([og_eq($v_title, ''), $v_hasAction]))}\n  {capture $c_7}\n    {capture $c_6}\n      {=og_text(og_get($v_action, ['label']))}\n    {/capture}\n    {=og_include('compose/Link.latte', ['href' => og_url(og_s(og_get($v_action, ['href']))), 'variant' => 'default', 'class' => og_s(og_cnv([og_preset('blocks/presets/defaults.json', ['text', 'tiny']), 'shrink-0 font-medium leading-5'])), 'attrs' => og_attrs(['data-slot', 'section-action']), 'children' => (string) $c_6])|noescape}\n  {/capture}\n  {=og_include('compose/Group.latte', ['gap' => '4', 'align' => 'center', 'justify' => 'end', 'class' => 'w-full', 'attrs' => og_attrs(['data-slot', 'section-header']), 'children' => (string) $c_7])|noescape}\n{/if}\n{if og_t($v_lead)}\n  {capture $c_8}\n    {=og_text($v_lead)}\n  {/capture}\n  {=og_include('compose/Text.latte', ['size' => 'base', 'class' => og_s(og_cnv(['max-w-2xl text-muted-foreground', (og_t($v_center) ? 'mx-auto' : '')])), 'attrs' => og_attrs(['data-slot', 'section-header']), 'children' => (string) $c_8])|noescape}\n{/if}\n",
      "path": "blocks/section-header.latte",
      "target": "blocks/section-header.latte"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "latte",
      "component"
    ]
  },
  "name": "section-header",
  "registryDependencies": [
    "badge",
    "group",
    "link",
    "presets",
    "text",
    "title",
    "utils"
  ],
  "runtime": "latte",
  "title": "Section Header",
  "type": "registry:component"
}
