{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A sidebar section heading with optional right actions. Set `expanded` and it becomes a disclosure button (aria-expanded, the toggle event).",
  "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-head.json\n    A sidebar section heading with optional right actions. Set `expanded` and it becomes a disclosure button (aria-expanded, the toggle event).\n    Props (p): size, expanded, controls, className, right (slot); children: markup. -#}\n{%- set v_size = og_def(p['size'], 'default') -%}\n{%- set v_expanded = og_def(p['expanded'], none) -%}\n{%- set v_controls = og_def(p['controls'], none) -%}\n{%- set v_cls = og_cnv([og_recipe('blocks/recipes/section-head.variants.json', {'size': v_size}), 'rounded text-foreground in-data-[nav=collapsed]:hidden', og_def(p['className'], '')]) -%}\n{%- if og_t(og_has(v_expanded)) %}\n  {%- set c_3 -%}\n    {%- set c_1 -%}\n      {{ og_slot(og_def(children, none))|safe }}\n    {%- endset -%}\n    {{ og_include('compose/inline.html.j2', {'p': {'Attrs': og_attrs(['data-slot', 'section-head-title'])}, 'children': c_1}) }}\n    {%- if og_t((og_def(p['right'], none) is not none)) %}\n      {%- set c_2 -%}\n        {{ og_slot(og_def(p['right'], none))|safe }}\n      {%- endset -%}\n      {{ og_include('compose/inline.html.j2', {'p': {'Class': 'flex items-center gap-2', 'Attrs': og_attrs(['data-slot', 'section-head-right'])}, 'children': c_2}) }}\n    {%- endif %}\n  {%- endset -%}\n  {{ og_include('compose/button-plain.html.j2', {'p': {'Type': 'button', 'Class': og_s(og_cnv([v_cls, 'w-full text-left'])), 'Attrs': og_attrs(['aria-expanded', v_expanded, 'aria-controls', v_controls, 'data-slot', 'section-head', 'data-expanded', v_expanded])}, 'children': c_3}) }}\n{%- else %}\n  {%- set c_6 -%}\n    {%- set c_4 -%}\n      {{ og_slot(og_def(children, none))|safe }}\n    {%- endset -%}\n    {{ og_include('compose/inline.html.j2', {'p': {'Attrs': og_attrs(['data-slot', 'section-head-title'])}, 'children': c_4}) }}\n    {%- if og_t((og_def(p['right'], none) is not none)) %}\n      {%- set c_5 -%}\n        {{ og_slot(og_def(p['right'], none))|safe }}\n      {%- endset -%}\n      {{ og_include('compose/inline.html.j2', {'p': {'Class': 'flex items-center gap-2', 'Attrs': og_attrs(['data-slot', 'section-head-right'])}, 'children': c_5}) }}\n    {%- endif %}\n  {%- endset -%}\n  {{ og_include('compose/box.html.j2', {'p': {'Class': og_s(v_cls), 'Attrs': og_attrs(['data-slot', 'section-head'])}, 'children': c_6}) }}\n{%- endif %}\n",
      "path": "blocks/section-head.html.j2",
      "target": "blocks/section-head.html.j2"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "jinja2",
      "component"
    ]
  },
  "name": "section-head",
  "registryDependencies": [
    "box",
    "button-plain",
    "inline",
    "presets",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Section Head",
  "type": "registry:component"
}
