{
  "$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 = (p.size ?? 'default') -%}\n{%- set v_expanded = (p.expanded ?? null) -%}\n{%- set v_controls = (p.controls ?? null) -%}\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', (p.className ?? '')]) -%}\n{%- if og_t(og_has(v_expanded)) %}\n  {%- set c_3 -%}\n    {%- set c_1 -%}\n      {{ og_slot((children ?? null))|raw }}\n    {%- endset -%}\n    {{ include('compose/Inline.html.twig', {'attrs': og_attrs(['data-slot', 'section-head-title']), 'children': c_1}, with_context = false) }}\n    {%- if og_t(((p.right ?? null) is not null)) %}\n      {%- set c_2 -%}\n        {{ og_slot((p.right ?? null))|raw }}\n      {%- endset -%}\n      {{ include('compose/Inline.html.twig', {'class': 'flex items-center gap-2', 'attrs': og_attrs(['data-slot', 'section-head-right']), 'children': c_2}, with_context = false) }}\n    {%- endif %}\n  {%- endset -%}\n  {{ include('compose/ButtonPlain.html.twig', {'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}, with_context = false) }}\n{%- else %}\n  {%- set c_6 -%}\n    {%- set c_4 -%}\n      {{ og_slot((children ?? null))|raw }}\n    {%- endset -%}\n    {{ include('compose/Inline.html.twig', {'attrs': og_attrs(['data-slot', 'section-head-title']), 'children': c_4}, with_context = false) }}\n    {%- if og_t(((p.right ?? null) is not null)) %}\n      {%- set c_5 -%}\n        {{ og_slot((p.right ?? null))|raw }}\n      {%- endset -%}\n      {{ include('compose/Inline.html.twig', {'class': 'flex items-center gap-2', 'attrs': og_attrs(['data-slot', 'section-head-right']), 'children': c_5}, with_context = false) }}\n    {%- endif %}\n  {%- endset -%}\n  {{ include('compose/Box.html.twig', {'class': og_s(v_cls), 'attrs': og_attrs(['data-slot', 'section-head']), 'children': c_6}, with_context = false) }}\n{%- endif %}\n",
      "path": "blocks/section-head.html.twig",
      "target": "blocks/section-head.html.twig"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "twig",
      "component"
    ]
  },
  "name": "section-head",
  "registryDependencies": [
    "box",
    "button-plain",
    "inline",
    "presets",
    "utils"
  ],
  "runtime": "twig",
  "title": "Section Head",
  "type": "registry:component"
}
