{
  "$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{%- set v_titleId = (p.titleId ?? null) -%}\n{%- set v_title = (p.title ?? '') -%}\n{%- set v_heading = (p.heading ?? null) -%}\n{%- set v_action = (p.action ?? null) -%}\n{%- set v_lead = (p.lead ?? null) -%}\n{%- set v_center = (p.center ?? false) -%}\n{%- set v_level = og_coalesce([og_get(v_heading, ['level']), 2]) -%}\n{%- set v_scale = og_coalesce([og_get(v_heading, ['scale']), 'default']) -%}\n{%- set v_hasAction = og_and([og_get(v_action, ['label']), og_get(v_action, ['href'])]) -%}\n{%- if og_t(og_get(v_heading, ['badge'])) %}\n  {%- set c_1 -%}\n    {{ og_text(og_get(v_heading, ['badge'])) }}\n  {%- endset -%}\n  {{ include('compose/Badge.html.twig', {'variant': 'outline', 'size': 'lg', 'class': og_s((og_t(v_center) ? 'mx-auto w-fit' : 'w-fit')), 'children': c_1}, with_context = false) }}\n{%- endif %}\n{%- if og_t(og_and([not (og_eq(v_title, '')), v_hasAction])) %}\n  {%- set c_4 -%}\n    {%- set c_2 -%}\n      {{ og_text(v_title) }}\n    {%- endset -%}\n    {{ include('compose/Title.html.twig', {'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': c_2}, with_context = false) }}\n    {%- set c_3 -%}\n      {{ og_text(og_get(v_action, ['label'])) }}\n    {%- endset -%}\n    {{ include('compose/Link.html.twig', {'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': c_3}, with_context = false) }}\n  {%- endset -%}\n  {{ include('compose/Group.html.twig', {'gap': '4', 'align': 'center', 'justify': 'between', 'class': 'w-full flex-wrap', 'attrs': og_attrs(['data-slot', 'section-header']), 'children': c_4}, with_context = false) }}\n{%- endif %}\n{%- if og_t(og_and([not (og_eq(v_title, '')), not (og_t(v_hasAction))])) %}\n  {%- set c_5 -%}\n    {{ og_text(v_title) }}\n  {%- endset -%}\n  {{ include('compose/Title.html.twig', {'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': c_5}, with_context = false) }}\n{%- endif %}\n{%- if og_t(og_and([og_eq(v_title, ''), v_hasAction])) %}\n  {%- set c_7 -%}\n    {%- set c_6 -%}\n      {{ og_text(og_get(v_action, ['label'])) }}\n    {%- endset -%}\n    {{ include('compose/Link.html.twig', {'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': c_6}, with_context = false) }}\n  {%- endset -%}\n  {{ include('compose/Group.html.twig', {'gap': '4', 'align': 'center', 'justify': 'end', 'class': 'w-full', 'attrs': og_attrs(['data-slot', 'section-header']), 'children': c_7}, with_context = false) }}\n{%- endif %}\n{%- if og_t(v_lead) %}\n  {%- set c_8 -%}\n    {{ og_text(v_lead) }}\n  {%- endset -%}\n  {{ include('compose/Text.html.twig', {'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': c_8}, with_context = false) }}\n{%- endif %}\n",
      "path": "blocks/section-header.html.twig",
      "target": "blocks/section-header.html.twig"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "twig",
      "component"
    ]
  },
  "name": "section-header",
  "registryDependencies": [
    "badge",
    "group",
    "link",
    "presets",
    "text",
    "title",
    "utils"
  ],
  "runtime": "twig",
  "title": "Section Header",
  "type": "registry:component"
}
