{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The meat of a grill dish as picture cards in one radio group (fieldset with role radiogroup named by its legend): a picture, the name and the price per 500 g; the first checked.",
  "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/meat-cards.json\n    The meat of a grill dish as picture cards in one radio group (fieldset with role radiogroup named by its legend): a picture, the name and the price per 500 g; the first checked.\n    Props (p): name, legend, options. -#}\n{%- set v_name = (p.name ?? null) -%}\n{%- set v_legend = (p.legend ?? null) -%}\n{%- set v_options = (p.options ?? null) -%}\n{%- set c_7 -%}\n  {%- set c_1 -%}\n    {{ og_text(v_legend) }}\n  {%- endset -%}\n  {{ include('compose/Legend.html.twig', {'size': 'sm', 'class': 'mb-2', 'attrs': og_attrs(['id', og_tpl('{0}-legend', [v_name])]), 'children': c_1}, with_context = false) }}\n  {%- set c_6 -%}\n    {%- for v_o in og_l(v_options) %}\n      {%- set v_i = loop.index0 -%}\n      {%- set c_5 -%}\n        {{ include('blocks/media-frame.html.twig', {'p': {'alt': og_get(v_o, ['name']), 'src': og_get(v_o, ['image']), 'ratio': '4/3'}}, with_context = false) }}\n        {%- set c_3 -%}\n          {{ include('compose/Radio.html.twig', {'name': og_s(v_name), 'value': og_s(og_get(v_o, ['id'])), 'checked': og_t(og_eq(v_i, 0))}, with_context = false) }}\n          {%- set c_2 -%}\n            {{ og_text(og_get(v_o, ['name'])) }}\n          {%- endset -%}\n          {{ include('compose/Inline.html.twig', {'children': c_2}, with_context = false) }}\n        {%- endset -%}\n        {{ include('compose/Label.html.twig', {'class': 'flex items-center gap-2 font-medium', 'children': c_3}, with_context = false) }}\n        {%- set c_4 -%}\n          {{ og_text(og_tpl('{0} · {1}', [og_money(og_get(v_o, ['price']), og_get(v_o, ['currency'])), og_get(v_o, ['note'])])) }}\n        {%- endset -%}\n        {{ include('compose/Inline.html.twig', {'class': 'text-xs text-muted-foreground', 'children': c_4}, with_context = false) }}\n      {%- endset -%}\n      {{ include('compose/Box.html.twig', {'class': 'flex flex-col gap-2 rounded p-2 text-sm inset-ring inset-ring-border has-checked:bg-muted has-checked:inset-ring-foreground', 'attrs': og_attrs(['data-slot', 'option']), 'children': c_5}, with_context = false) }}\n    {%- endfor %}\n  {%- endset -%}\n  {{ include('compose/Box.html.twig', {'class': 'grid grid-cols-2 gap-4 md:grid-cols-4', 'children': c_6}, with_context = false) }}\n{%- endset -%}\n{{ include('compose/Fieldset.html.twig', {'class': 'flex flex-col gap-2', 'attrs': og_attrs(['role', 'radiogroup', 'aria-labelledby', og_tpl('{0}-legend', [v_name]), 'data-slot', 'meat']), 'children': c_7}, with_context = false) }}\n",
      "path": "blocks/meat-cards.html.twig",
      "target": "blocks/meat-cards.html.twig"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "twig",
      "component"
    ]
  },
  "name": "meat-cards",
  "registryDependencies": [
    "box",
    "fieldset",
    "inline",
    "label",
    "legend",
    "media-frame",
    "radio",
    "utils"
  ],
  "runtime": "twig",
  "title": "Meat Cards",
  "type": "registry:component"
}
