{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Features as cards, tiles or rows with a picture.",
  "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-grid.json\n    A section with a heading and the features as a grid of cards or tiles, or as rows with a picture. Icons are Lucide names. Axes: layout (grid, rows), columns, item (card, tile, cell: bordered tile with a round icon), media side (rows), density, tone.\n    Props (p): id, title, features, empty, action, layout, cols, item, mediaSide, 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_action = og_def(p['action'], none) -%}\n{%- set v_layout = og_def(p['layout'], 'grid') -%}\n{%- set v_cols = og_def(p['cols'], '1-3') -%}\n{%- set v_item = og_def(p['item'], 'card') -%}\n{%- set v_mediaSide = og_def(p['mediaSide'], 'end') -%}\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{%- if og_t(og_eq(v_item, 'cell')) %}\n  {%- set c_4 -%}\n    {%- set c_3 -%}\n      {%- set c_1 -%}\n        {{ og_text(v_title) }}\n      {%- endset -%}\n      {{ og_include('compose/title.html.j2', {'p': {'As': 2, 'Size': 'sm', 'Weight': 'semibold', 'Class': 'leading-7', 'Attrs': og_attrs(['id', og_add(v_id, '-title')])}, 'children': c_1}) }}\n      {%- if og_t(og_and([og_get(v_action, ['label']), og_get(v_action, ['href'])])) %}\n        {%- set c_2 -%}\n          {{ og_text(og_get(v_action, ['label'])) }}\n        {%- endset -%}\n        {{ og_include('compose/link.html.j2', {'p': {'Href': og_url(og_s(og_get(v_action, ['href']))), 'Variant': 'default', 'Class': og_s(og_cnv([og_preset('blocks/presets/defaults.json', ['text', 'tiny']), 'shrink-0 font-medium leading-5'])), 'Attrs': og_attrs(['data-slot', 'section-action'])}, 'children': c_2}) }}\n      {%- endif %}\n    {%- endset -%}\n    {{ og_include('compose/group.html.j2', {'p': {'Gap': '4', 'Align': 'center', 'Justify': 'between', 'Class': 'w-full'}, 'children': c_3}) }}\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      {{ og_include('blocks/feature-cards.html.j2', {'p': {'features': v_features, 'cols': v_cols, 'item': v_item}}) }}\n    {%- endif %}\n  {%- endset -%}\n  {{ og_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'tone': v_tone, 'density': v_density, 'measure': 'fill', 'className': og_cnv(['py-0']), 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_4)}) }}\n{%- else %}\n  {%- set c_5 -%}\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    {%- elif og_t(og_eq(v_layout, 'rows')) %}\n      {{ og_include('blocks/feature-rows.html.j2', {'p': {'features': v_features, 'mediaSide': v_mediaSide}}) }}\n    {%- else %}\n      {{ og_include('blocks/feature-cards.html.j2', {'p': {'features': v_features, 'cols': v_cols, 'item': v_item}}) }}\n    {%- endif %}\n  {%- endset -%}\n  {{ og_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'action': v_action, 'tone': v_tone, 'density': v_density, 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_5)}) }}\n{%- endif %}\n",
      "path": "blocks/feature-grid.html.j2",
      "target": "blocks/feature-grid.html.j2"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "features",
    "kind": "block",
    "tags": [
      "jinja2",
      "block"
    ]
  },
  "name": "feature-grid",
  "registryDependencies": [
    "empty-state",
    "feature-cards",
    "feature-rows",
    "group",
    "link",
    "presets",
    "section-frame",
    "title",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Feature Grid",
  "type": "registry:block"
}
