{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A page section: the landmark named by its heading, the heading (h1 or h2), an optional lead, the body (`children`) and optional media. `layout` stacks everything or puts the media beside the text; `boxed` puts the body in a card. Axes: layout, media side, tone, density, align.",
  "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-frame.json\n    A page section: the landmark named by its heading, the heading (h1 or h2), an optional lead, the body (`children`) and optional media. `layout` stacks everything or puts the media beside the text; `boxed` puts the body in a card. Axes: layout, media side, tone, density, align.\n    Props (p): id, title, lead, heading, action, layout, media, boxed, tone, density, align, measure, landmarkLabel, className, aside (slot); children: markup. -#}\n{%- set v_id = (p.id ?? null) -%}\n{%- set v_title = (p.title ?? '') -%}\n{%- set v_lead = (p.lead ?? null) -%}\n{%- set v_heading = (p.heading ?? null) -%}\n{%- set v_action = (p.action ?? null) -%}\n{%- set v_layout = (p.layout ?? 'stack') -%}\n{%- set v_media = (p.media ?? null) -%}\n{%- set v_boxed = (p.boxed ?? false) -%}\n{%- set v_tone = (p.tone ?? 'default') -%}\n{%- set v_density = (p.density ?? 'default') -%}\n{%- set v_align = (p.align ?? 'start') -%}\n{%- set v_measure = (p.measure ?? 'default') -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- set v_titleId = og_add(v_id, '-title') -%}\n{%- set v_sectionTone = (og_t(v_boxed) ? 'default' : v_tone) -%}\n{%- set v_center = og_eq(v_align, 'center') -%}\n{%- set c_9 -%}\n  {%- set c_8 -%}\n    {%- set c_7 -%}\n      {%- if og_t(og_eq(v_layout, 'split')) %}\n        {%- set c_4 -%}\n          {%- if og_t(og_and([og_get(v_media, ['show']), og_eq(og_get(v_media, ['side']), 'start')])) %}\n            {%- set c_1 -%}\n              {{ og_slot((p.aside ?? null))|raw }}\n            {%- endset -%}\n            {{ include('compose/Box.html.twig', {'class': 'w-full', 'attrs': og_attrs(['data-slot', 'media']), 'children': c_1}, with_context = false) }}\n          {%- endif %}\n          {%- set c_2 -%}\n            {{ include('blocks/section-header.html.twig', {'p': {'titleId': v_titleId, 'title': v_title, 'heading': v_heading, 'action': v_action, 'lead': v_lead, 'center': v_center}}, with_context = false) }}\n            {{ og_slot((children ?? null))|raw }}\n          {%- endset -%}\n          {{ include('compose/Stack.html.twig', {'gap': '6', 'align': 'stretch', 'children': c_2}, with_context = false) }}\n          {%- if og_t(og_and([og_get(v_media, ['show']), not (og_eq(og_get(v_media, ['side']), 'start'))])) %}\n            {%- set c_3 -%}\n              {{ og_slot((p.aside ?? null))|raw }}\n            {%- endset -%}\n            {{ include('compose/Box.html.twig', {'class': 'w-full', 'attrs': og_attrs(['data-slot', 'media']), 'children': c_3}, with_context = false) }}\n          {%- endif %}\n        {%- endset -%}\n        {{ include('compose/Grid.html.twig', {'cols': '1-2', 'class': og_s(og_cnv(['gap-8', (og_t(og_eq(og_get(v_media, ['align']), 'start')) ? 'items-start' : 'items-center')])), 'children': c_4}, with_context = false) }}\n      {%- else %}\n        {%- set c_6 -%}\n          {{ include('blocks/section-header.html.twig', {'p': {'titleId': v_titleId, 'title': v_title, 'heading': v_heading, 'action': v_action, 'lead': v_lead, 'center': v_center}}, with_context = false) }}\n          {{ og_slot((children ?? null))|raw }}\n          {%- if og_t(og_get(v_media, ['show'])) %}\n            {%- set c_5 -%}\n              {{ og_slot((p.aside ?? null))|raw }}\n            {%- endset -%}\n            {{ include('compose/Box.html.twig', {'class': 'w-full', 'attrs': og_attrs(['data-slot', 'media']), 'children': c_5}, with_context = false) }}\n          {%- endif %}\n        {%- endset -%}\n        {{ include('blocks/section-column.html.twig', {'p': {'measure': v_measure}, 'children': og_markup(c_6)}, with_context = false) }}\n      {%- endif %}\n    {%- endset -%}\n    {{ include('blocks/section-box.html.twig', {'p': {'boxed': v_boxed}, 'children': og_markup(c_7)}, with_context = false) }}\n  {%- endset -%}\n  {{ include('compose/Container.html.twig', {'class': og_s((og_t(og_eq(v_measure, 'landing')) ? og_cnv(['mx-auto w-full px-4', og_preset('blocks/presets/defaults.json', ['section', 'landing'])]) : (og_t(og_eq(v_measure, 'fill')) ? 'w-full' : 'mx-auto w-full max-w-6xl px-4'))), 'attrs': og_attrs(['data-slot', 'container']), 'children': c_8}, with_context = false) }}\n{%- endset -%}\n{{ include('compose/Block.html.twig', {'tag': 'section', 'class': og_s(og_cnv([og_recipe('blocks/recipes/section-frame.variants.json', {'tone': v_sectionTone, 'density': v_density, 'align': v_align}), (p.className ?? '')])), 'attrs': og_attrs(['aria-labelledby', (og_t(v_landmarkLabel) ? null : (og_t(not (og_eq(v_title, ''))) ? v_titleId : null)), 'aria-label', og_coalesce([v_landmarkLabel, (og_t(og_eq(v_title, '')) ? v_id : null)]), 'data-tone', v_tone, 'data-density', v_density, 'data-slot', 'section']), 'children': c_9}, with_context = false) }}\n",
      "path": "blocks/section-frame.html.twig",
      "target": "blocks/section-frame.html.twig"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "twig",
      "component"
    ]
  },
  "name": "section-frame",
  "registryDependencies": [
    "block",
    "box",
    "container",
    "grid",
    "presets",
    "section-box",
    "section-column",
    "section-header",
    "stack",
    "utils"
  ],
  "runtime": "twig",
  "title": "Section Frame",
  "type": "registry:component"
}
