{
  "$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/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n/**\n * One dish on a menu board: name, optional badge, a dotted leader to the price, then the summary and the\n * portion/weight. Used by MenuBoard; Codex kind `dish`.\n */\nimport { type JSX } from \"solid-js\";\nimport { Badge, Box, Inline, ListItem } from \"../compose\";\nimport { fmtMoney, tpl } from \"../utils\";\nimport type { Dish } from \"../blocks/dish-showcase.types\";\n\nexport type MenuRowProps = {\n  dish: Dish;\n  prices?: \"show\" | \"hide\";\n};\n\nexport function MenuRow({ dish, prices = \"show\" }: MenuRowProps) {\n  return (\n    <ListItem class=\"flex flex-col gap-0 border-b border-border py-2\" data-slot=\"item\">\n      <Box class=\"flex items-baseline gap-2\">\n        <Inline class=\"font-semibold\">\n          {dish.name}\n        </Inline>\n        {dish.badge ? (\n          <Badge variant=\"outline\" size=\"sm\">\n            {dish.badge}\n          </Badge>\n        ) : null}\n        {((prices as string) === \"show\") ? (\n          <>\n            <Inline class=\"flex-1 border-b border-dotted border-border\" aria-hidden=\"true\" />\n            <Inline class=\"font-semibold\" data-slot=\"price\">\n              {fmtMoney(dish.price, dish.currency)}\n            </Inline>\n          </>\n        ) : null}\n      </Box>\n      <Inline class=\"text-sm text-muted-foreground\">\n        {tpl(\"{0} · {1}\", dish.summary, dish.weight)}\n      </Inline>\n    </ListItem>\n  );\n}\n",
      "path": "components/menu-row.tsx",
      "target": "components/menu-row.tsx"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "solid",
      "component"
    ]
  },
  "name": "menu-row",
  "registryDependencies": [
    "compose",
    "dish-showcase",
    "utils"
  ],
  "runtime": "solid",
  "title": "Menu Row",
  "type": "registry:component"
}
