{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "One dish on a menu board: name, optional badge, a dotted leader to the price, then the summary and the portion/weight. Used by MenuBoard; Codex kind `dish`.",
  "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/menu-row.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/text\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// MenuRowProps are the props of MenuRow; the values are the JSON shapes of the TypeScript props.\ntype MenuRowProps struct {\n\tDish any `json:\"dish\"`\n\tPrices any `json:\"prices\"`\n}\n\n// One dish on a menu board: name, optional badge, a dotted leader to the price, then the summary and the portion/weight. Used by MenuBoard; Codex kind `dish`.\ntempl MenuRow(p MenuRowProps) {\n\t{{ vDish := p.Dish }}\n\t{{ vPrices := uiutils.Def(p.Prices, \"show\") }}\n\t@compose.ListItem(compose.ListItemProps{BoxProps: box.BoxProps{Class: \"flex flex-col gap-0 border-b border-border py-2\", Attrs: uiutils.Attrs(\"data-slot\", \"item\")}}) {\n\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: \"flex items-baseline gap-2\"}}) {\n\t\t\t@compose.Inline(compose.InlineProps{TextProps: text.TextProps{Class: \"font-semibold\"}}) {\n\t\t\t\t{ uiutils.Text(uiutils.Get(vDish, \"name\")) }\n\t\t\t}\n\t\t\tif uiutils.T(uiutils.Get(vDish, \"badge\")) {\n\t\t\t\t@compose.Badge(compose.BadgeProps{Variant: \"outline\", Size: \"sm\", TextProps: text.TextProps{}}) {\n\t\t\t\t\t{ uiutils.Text(uiutils.Get(vDish, \"badge\")) }\n\t\t\t\t}\n\t\t\t}\n\t\t\tif uiutils.Eq(vPrices, \"show\") {\n\t\t\t\t@compose.Inline(compose.InlineProps{TextProps: text.TextProps{Class: \"flex-1 border-b border-dotted border-border\", Attrs: uiutils.Attrs(\"aria-hidden\", \"true\")}})\n\t\t\t\t@compose.Inline(compose.InlineProps{TextProps: text.TextProps{Class: \"font-semibold\", Attrs: uiutils.Attrs(\"data-slot\", \"price\")}}) {\n\t\t\t\t\t{ uiutils.Text(uiutils.Money(uiutils.Get(vDish, \"price\"), uiutils.Get(vDish, \"currency\"))) }\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t@compose.Inline(compose.InlineProps{TextProps: text.TextProps{Class: \"text-sm text-muted-foreground\"}}) {\n\t\t\t{ uiutils.Text(uiutils.Tpl(\"{0} · {1}\", uiutils.Get(vDish, \"summary\"), uiutils.Get(vDish, \"weight\"))) }\n\t\t}\n\t}\n}\n",
      "path": "blocks/menu-row.templ",
      "target": "blocks/menu-row.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "menu-row",
  "registryDependencies": [
    "badge",
    "box",
    "inline",
    "kit-box",
    "kit-text",
    "list-item",
    "utils"
  ],
  "runtime": "templ",
  "title": "Menu Row",
  "type": "registry:component"
}
