{
  "$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 = og_def(p['id'], none) -%}\n{%- set v_title = og_def(p['title'], none) -%}\n{%- set v_features = og_def(p['features'], none) -%}\n{%- set v_empty = og_def(p['empty'], '') -%}\n{%- set v_tabsLabel = og_def(p['tabsLabel'], none) -%}\n{%- set v_active = og_def(p['active'], '') -%}\n{%- set v_panel = og_def(p['panel'], 'split') -%}\n{%- set v_tone = og_def(p['tone'], 'default') -%}\n{%- set v_density = og_def(p['density'], 'default') -%}\n{%- set v_landmarkLabel = og_def(p['landmarkLabel'], none) -%}\n{%- set c_8 -%}\n  {%- if og_t(og_eq(og_len(v_features), 0)) %}\n    {{ og_include('blocks/empty-state.html.j2', {'p': {'icon': 'layout-grid', 'title': v_empty}}) }}\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          {{ og_include('blocks/switcher-item.html.j2', {'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)}) }}\n        {%- endfor %}\n      {%- endset -%}\n      {{ og_include('blocks/switcher.html.j2', {'p': {'label': v_tabsLabel, 'className': og_cnv(['w-fit max-w-full flex-wrap'])}, 'children': og_markup(c_2)}) }}\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              {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': og_s(og_get(v_f, ['icon'])), 'Size': 24}}) }}\n              {%- set c_3 -%}\n                {{ og_text(og_get(v_f, ['title'])) }}\n              {%- endset -%}\n              {{ og_include('compose/title.html.j2', {'p': {'As': 3, 'Size': '2xl', 'Weight': 'bold'}, 'children': c_3}) }}\n              {%- set c_4 -%}\n                {{ og_text(og_get(v_f, ['text'])) }}\n              {%- endset -%}\n              {{ og_include('compose/text.html.j2', {'p': {'Size': 'base', 'Class': 'text-muted-foreground'}, 'children': c_4}) }}\n            {%- endset -%}\n            {{ og_include('compose/stack.html.j2', {'p': {'Gap': '4'}, 'children': c_5}) }}\n            {{ og_include('blocks/media-frame.html.j2', {'p': {'alt': og_get(v_f, ['title']), 'src': og_get(v_f, ['image']), 'ratio': '4/3'}}) }}\n          {%- endset -%}\n          {{ og_include('compose/grid.html.j2', {'p': {'Cols': og_s(('1-2' if og_t(og_eq(v_panel, 'split')) else '1')), 'Class': 'items-center gap-8', 'Attrs': og_attrs(['role', 'tabpanel', 'data-slot', 'tab-panel'])}, 'children': c_6}) }}\n        {%- endif %}\n      {%- endfor %}\n    {%- endset -%}\n    {{ og_include('compose/stack.html.j2', {'p': {'Gap': '6', 'Align': 'stretch'}, 'children': c_7}) }}\n  {%- endif %}\n{%- endset -%}\n{{ og_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'tone': v_tone, 'density': v_density, 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_8)}) }}\n",
      "path": "blocks/feature-tabs.html.j2",
      "target": "blocks/feature-tabs.html.j2"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "features",
    "kind": "block",
    "tags": [
      "jinja2",
      "block"
    ]
  },
  "name": "feature-tabs",
  "registryDependencies": [
    "empty-state",
    "grid",
    "lucide-icon",
    "media-frame",
    "section-frame",
    "stack",
    "switcher",
    "switcher-item",
    "text",
    "title",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Feature Tabs",
  "type": "registry:block"
}
