{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Menu Row component",
  "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-->\n<script lang=\"ts\">\nimport type { Dish } from \"../blocks/dish-showcase.types\";\n\nexport type MenuRowProps = {\n  dish: Dish;\n  prices?: \"show\" | \"hide\";\n};\n</script>\n\n<script setup lang=\"ts\">\nimport Badge from \"../compose/Badge.vue\";\nimport Box from \"../compose/Box.vue\";\nimport Inline from \"../compose/Inline.vue\";\nimport ListItem from \"../compose/ListItem.vue\";\nimport { fmtMoney, tpl } from \"../utils\";\n\nconst { dish, prices = \"show\" } = defineProps<MenuRowProps>();\n</script>\n\n<template>\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      <Badge v-if=\"dish.badge\" variant=\"outline\" size=\"sm\">\n        {{ dish.badge }}\n      </Badge>\n      <template v-if=\"((prices as string) === 'show')\">\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      </template>\n    </Box>\n    <Inline class=\"text-sm text-muted-foreground\">\n      {{ tpl(\"{0} · {1}\", dish.summary, dish.weight) }}\n    </Inline>\n  </ListItem>\n</template>\n",
      "path": "components/menu-row.vue",
      "target": "components/menu-row.vue"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "vue",
      "component"
    ]
  },
  "name": "menu-row",
  "registryDependencies": [
    "badge",
    "box",
    "dish-showcase",
    "inline",
    "list-item",
    "utils"
  ],
  "runtime": "vue",
  "title": "Menu Row",
  "type": "registry:component"
}
