{
  "$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{var $v_name = ($p['name'] ?? null)}\n{var $v_legend = ($p['legend'] ?? null)}\n{var $v_options = ($p['options'] ?? null)}\n{capture $c_7}\n  {capture $c_1}\n    {=og_text($v_legend)}\n  {/capture}\n  {=og_include('compose/Legend.latte', ['size' => 'sm', 'class' => 'mb-2', 'attrs' => og_attrs(['id', og_tpl('{0}-legend', [$v_name])]), 'children' => (string) $c_1])|noescape}\n  {capture $c_6}\n    {foreach og_l($v_options) as $v_o}\n      {var $v_i = $iterator->counter0}\n      {capture $c_5}\n        {=og_include('blocks/media-frame.latte', ['p' => ['alt' => og_get($v_o, ['name']), 'src' => og_get($v_o, ['image']), 'ratio' => '4/3']])|noescape}\n        {capture $c_3}\n          {=og_include('compose/Radio.latte', ['name' => og_s($v_name), 'value' => og_s(og_get($v_o, ['id'])), 'checked' => og_t(og_eq($v_i, 0))])|noescape}\n          {capture $c_2}\n            {=og_text(og_get($v_o, ['name']))}\n          {/capture}\n          {=og_include('compose/Inline.latte', ['children' => (string) $c_2])|noescape}\n        {/capture}\n        {=og_include('compose/Label.latte', ['class' => 'flex items-center gap-2 font-medium', 'children' => (string) $c_3])|noescape}\n        {capture $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        {/capture}\n        {=og_include('compose/Inline.latte', ['class' => 'text-xs text-muted-foreground', 'children' => (string) $c_4])|noescape}\n      {/capture}\n      {=og_include('compose/Box.latte', ['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' => (string) $c_5])|noescape}\n    {/foreach}\n  {/capture}\n  {=og_include('compose/Box.latte', ['class' => 'grid grid-cols-2 gap-4 md:grid-cols-4', 'children' => (string) $c_6])|noescape}\n{/capture}\n{=og_include('compose/Fieldset.latte', ['class' => 'flex flex-col gap-2', 'attrs' => og_attrs(['role', 'radiogroup', 'aria-labelledby', og_tpl('{0}-legend', [$v_name]), 'data-slot', 'meat']), 'children' => (string) $c_7])|noescape}\n",
      "path": "blocks/meat-cards.latte",
      "target": "blocks/meat-cards.latte"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "latte",
      "component"
    ]
  },
  "name": "meat-cards",
  "registryDependencies": [
    "box",
    "fieldset",
    "inline",
    "label",
    "legend",
    "media-frame",
    "radio",
    "utils"
  ],
  "runtime": "latte",
  "title": "Meat Cards",
  "type": "registry:component"
}
