{
  "$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\npackage blocks\n\nimport (\n\t\"github.com/ui8kit/codegen/generated/templ/ui/box\"\n\t\"github.com/ui8kit/codegen/generated/templ/compose\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/label\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/radio\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/text\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// MeatCardsProps are the props of MeatCards; the values are the JSON shapes of the TypeScript props.\ntype MeatCardsProps struct {\n\tName any `json:\"name\"`\n\tLegend any `json:\"legend\"`\n\tOptions any `json:\"options\"`\n}\n\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.\ntempl MeatCards(p MeatCardsProps) {\n\t{{ vName := p.Name }}\n\t{{ vLegend := p.Legend }}\n\t{{ vOptions := p.Options }}\n\t@compose.Fieldset(compose.FieldsetProps{BoxProps: box.BoxProps{Class: \"flex flex-col gap-2\", Attrs: uiutils.Attrs(\"role\", \"radiogroup\", \"aria-labelledby\", uiutils.Tpl(\"{0}-legend\", vName), \"data-slot\", \"meat\")}}) {\n\t\t@compose.Legend(compose.LegendProps{Size: \"sm\", TextProps: text.TextProps{Class: \"mb-2\", Attrs: uiutils.Attrs(\"id\", uiutils.Tpl(\"{0}-legend\", vName))}}) {\n\t\t\t{ uiutils.Text(vLegend) }\n\t\t}\n\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: \"grid grid-cols-2 gap-4 md:grid-cols-4\"}}) {\n\t\t\tfor vI, vO := range uiutils.L(vOptions) {\n\t\t\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{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: uiutils.Attrs(\"data-slot\", \"option\")}}) {\n\t\t\t\t\t@MediaFrame(MediaFrameProps{Alt: uiutils.Get(vO, \"name\"), Src: uiutils.Get(vO, \"image\"), Ratio: \"4/3\"})\n\t\t\t\t\t@compose.Label(compose.LabelProps{LabelProps: label.LabelProps{Class: \"flex items-center gap-2 font-medium\"}}) {\n\t\t\t\t\t\t@compose.Radio(compose.RadioProps{RadioProps: radio.RadioProps{Name: uiutils.S(vName), Value: uiutils.SP(uiutils.Get(vO, \"id\")), Checked: uiutils.T(uiutils.Eq(float64(vI), float64(0)))}})\n\t\t\t\t\t\t@compose.Inline(compose.InlineProps{TextProps: text.TextProps{}}) {\n\t\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vO, \"name\")) }\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t@compose.Inline(compose.InlineProps{TextProps: text.TextProps{Class: \"text-xs text-muted-foreground\"}}) {\n\t\t\t\t\t\t{ uiutils.Text(uiutils.Tpl(\"{0} · {1}\", uiutils.Money(uiutils.Get(vO, \"price\"), uiutils.Get(vO, \"currency\")), uiutils.Get(vO, \"note\"))) }\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n",
      "path": "blocks/meat-cards.templ",
      "target": "blocks/meat-cards.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "meat-cards",
  "registryDependencies": [
    "box",
    "fieldset",
    "inline",
    "kit-box",
    "kit-label",
    "kit-radio",
    "kit-text",
    "label",
    "legend",
    "media-frame",
    "radio",
    "utils"
  ],
  "runtime": "templ",
  "title": "Meat Cards",
  "type": "registry:component"
}
