{
  "$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{var $v_size = ($p['size'] ?? 'default')}\n{var $v_expanded = ($p['expanded'] ?? null)}\n{var $v_controls = ($p['controls'] ?? null)}\n{var $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  {capture $c_3}\n    {capture $c_1}\n      {=og_slot(($children ?? null))|noescape}\n    {/capture}\n    {=og_include('compose/Inline.latte', ['attrs' => og_attrs(['data-slot', 'section-head-title']), 'children' => (string) $c_1])|noescape}\n    {if og_t(((($p['right'] ?? null) !== null)))}\n      {capture $c_2}\n        {=og_slot(($p['right'] ?? null))|noescape}\n      {/capture}\n      {=og_include('compose/Inline.latte', ['class' => 'flex items-center gap-2', 'attrs' => og_attrs(['data-slot', 'section-head-right']), 'children' => (string) $c_2])|noescape}\n    {/if}\n  {/capture}\n  {=og_include('compose/ButtonPlain.latte', ['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' => (string) $c_3])|noescape}\n{else}\n  {capture $c_6}\n    {capture $c_4}\n      {=og_slot(($children ?? null))|noescape}\n    {/capture}\n    {=og_include('compose/Inline.latte', ['attrs' => og_attrs(['data-slot', 'section-head-title']), 'children' => (string) $c_4])|noescape}\n    {if og_t(((($p['right'] ?? null) !== null)))}\n      {capture $c_5}\n        {=og_slot(($p['right'] ?? null))|noescape}\n      {/capture}\n      {=og_include('compose/Inline.latte', ['class' => 'flex items-center gap-2', 'attrs' => og_attrs(['data-slot', 'section-head-right']), 'children' => (string) $c_5])|noescape}\n    {/if}\n  {/capture}\n  {=og_include('compose/Box.latte', ['class' => og_s($v_cls), 'attrs' => og_attrs(['data-slot', 'section-head']), 'children' => (string) $c_6])|noescape}\n{/if}\n",
      "path": "blocks/section-head.latte",
      "target": "blocks/section-head.latte"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "latte",
      "component"
    ]
  },
  "name": "section-head",
  "registryDependencies": [
    "box",
    "button-plain",
    "inline",
    "presets",
    "utils"
  ],
  "runtime": "latte",
  "title": "Section Head",
  "type": "registry:component"
}
