{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Features as tabs; the chosen one fills the panel beside or below the tab list.",
  "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/organisms/feature-tabs.json\n    Features behind a tab list: the chosen tab shows its text and a picture. The page keeps the chosen tab (`active`, empty for the first) and updates it on the `select` event. Axes: panel (split: text beside the picture, stack: picture below), tone, density.\n    Props (p): id, title, features, empty, tabsLabel, active, panel, tone, density, landmarkLabel. -#}\n{%- set v_id = (p.id ?? null) -%}\n{%- set v_title = (p.title ?? null) -%}\n{%- set v_features = (p.features ?? null) -%}\n{%- set v_empty = (p.empty ?? '') -%}\n{%- set v_tabsLabel = (p.tabsLabel ?? null) -%}\n{%- set v_active = (p.active ?? '') -%}\n{%- set v_panel = (p.panel ?? 'split') -%}\n{%- set v_tone = (p.tone ?? 'default') -%}\n{%- set v_density = (p.density ?? 'default') -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- set c_8 -%}\n  {%- if og_t(og_eq(og_len(v_features), 0)) %}\n    {{ include('blocks/empty-state.html.twig', {'p': {'icon': 'layout-grid', 'title': v_empty}}, with_context = false) }}\n  {%- else %}\n    {%- set c_7 -%}\n      {%- set c_2 -%}\n        {%- for v_f in og_l(v_features) %}\n          {%- set v_i = loop.index0 -%}\n          {%- set c_1 -%}\n            {{ og_text(og_get(v_f, ['title'])) }}\n          {%- endset -%}\n          {{ include('blocks/switcher-item.html.twig', {'p': {'active': og_or([og_eq(og_get(v_f, ['id']), v_active), og_and([og_eq(v_active, ''), og_eq(v_i, 0)])])}, 'children': og_markup(c_1)}, with_context = false) }}\n        {%- endfor %}\n      {%- endset -%}\n      {{ include('blocks/switcher.html.twig', {'p': {'label': v_tabsLabel, 'className': og_cnv(['w-fit max-w-full flex-wrap'])}, 'children': og_markup(c_2)}, with_context = false) }}\n      {%- for v_f in og_l(v_features) %}\n        {%- set v_i = loop.index0 -%}\n        {%- if og_t(og_or([og_eq(og_get(v_f, ['id']), v_active), og_and([og_eq(v_active, ''), og_eq(v_i, 0)])])) %}\n          {%- set c_6 -%}\n            {%- set c_5 -%}\n              {{ include('icons/LucideIcon.html.twig', {'name': og_s(og_get(v_f, ['icon'])), 'size': 24}, with_context = false) }}\n              {%- set c_3 -%}\n                {{ og_text(og_get(v_f, ['title'])) }}\n              {%- endset -%}\n              {{ include('compose/Title.html.twig', {'as': 3, 'size': '2xl', 'weight': 'bold', 'children': c_3}, with_context = false) }}\n              {%- set c_4 -%}\n                {{ og_text(og_get(v_f, ['text'])) }}\n              {%- endset -%}\n              {{ include('compose/Text.html.twig', {'size': 'base', 'class': 'text-muted-foreground', 'children': c_4}, with_context = false) }}\n            {%- endset -%}\n            {{ include('compose/Stack.html.twig', {'gap': '4', 'children': c_5}, with_context = false) }}\n            {{ include('blocks/media-frame.html.twig', {'p': {'alt': og_get(v_f, ['title']), 'src': og_get(v_f, ['image']), 'ratio': '4/3'}}, with_context = false) }}\n          {%- endset -%}\n          {{ include('compose/Grid.html.twig', {'cols': og_s((og_t(og_eq(v_panel, 'split')) ? '1-2' : '1')), 'class': 'items-center gap-8', 'attrs': og_attrs(['role', 'tabpanel', 'data-slot', 'tab-panel']), 'children': c_6}, with_context = false) }}\n        {%- endif %}\n      {%- endfor %}\n    {%- endset -%}\n    {{ include('compose/Stack.html.twig', {'gap': '6', 'align': 'stretch', 'children': c_7}, with_context = false) }}\n  {%- endif %}\n{%- endset -%}\n{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'tone': v_tone, 'density': v_density, 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_8)}, with_context = false) }}\n",
      "path": "blocks/feature-tabs.html.twig",
      "target": "blocks/feature-tabs.html.twig"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "features",
    "kind": "block",
    "tags": [
      "twig",
      "block"
    ]
  },
  "name": "feature-tabs",
  "registryDependencies": [
    "empty-state",
    "grid",
    "lucide-icon",
    "media-frame",
    "section-frame",
    "stack",
    "switcher",
    "switcher-item",
    "text",
    "title",
    "utils"
  ],
  "runtime": "twig",
  "title": "Feature Tabs",
  "type": "registry:block"
}
