{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "One item of a Switcher (default or active). Pass the same size and layout as the Switcher.",
  "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/switcher-item.json\n    One item of a Switcher (default or active). Pass the same size and layout as the Switcher.\n    Props (p): active, size, layout, className; children: markup. -#}\n{%- set v_active = (p.active ?? false) -%}\n{%- set v_size = (p.size ?? 'default') -%}\n{%- set v_layout = (p.layout ?? 'text') -%}\n{%- set c_1 -%}\n  {{ og_slot((children ?? null))|raw }}\n{%- endset -%}\n{{ include('compose/ButtonPlain.html.twig', {'type': 'button', 'class': og_s(og_cnv([og_recipe('blocks/recipes/switcher-item.variants.json', {'size': v_size, 'layout': v_layout, 'state': (og_t(v_active) ? 'active' : 'default')}), (p.className ?? '')])), 'attrs': og_attrs(['role', 'tab', 'aria-selected', v_active, 'tabindex', (og_t(v_active) ? 0 : -1), 'data-slot', 'switcher-item', 'data-state', (og_t(v_active) ? 'active' : 'default')]), 'children': c_1}, with_context = false) }}\n",
      "path": "blocks/switcher-item.html.twig",
      "target": "blocks/switcher-item.html.twig"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "twig",
      "component"
    ]
  },
  "name": "switcher-item",
  "registryDependencies": [
    "button-plain",
    "presets",
    "utils"
  ],
  "runtime": "twig",
  "title": "Switcher Item",
  "type": "registry:component"
}
