{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Product Price 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  The price line of a product page: the price (integer minor units in the currency), the old price (compare_at)\n  struck through when higher, and the badge.\n-->\n<script lang=\"ts\">\nexport type ProductPriceProps = {\n  price: number;\n  compareAt?: number;\n  currency: string;\n  badge?: string;\n  was: string;\n};\n</script>\n\n<script setup lang=\"ts\">\nimport Badge from \"../compose/Badge.vue\";\nimport Group from \"../compose/Group.vue\";\nimport Inline from \"../compose/Inline.vue\";\nimport Text from \"../compose/Text.vue\";\nimport { fmtMoney } from \"../utils\";\n\nconst { price, compareAt, currency, badge = \"\", was } = defineProps<ProductPriceProps>();\n</script>\n\n<template>\n  <Group gap=\"4\" align=\"center\" class=\"flex-wrap\" data-slot=\"product-price\">\n    <Text size=\"4xl\" weight=\"bold\">\n      {{ fmtMoney(price, currency) }}\n    </Text>\n    <Text\n      v-if=\"(compareAt && (compareAt > price))\"\n      tag=\"del\"\n      size=\"lg\"\n      class=\"relative text-muted-foreground\"\n      data-slot=\"compare-at\"\n    >\n      <Inline class=\"sr-only\">\n        {{ was }}\n      </Inline>\n      {{ fmtMoney(compareAt, currency) }}\n    </Text>\n    <Badge v-if=\"badge\" variant=\"default\" size=\"default\">\n      {{ badge }}\n    </Badge>\n  </Group>\n</template>\n",
      "path": "components/product-price.vue",
      "target": "components/product-price.vue"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "vue",
      "component"
    ]
  },
  "name": "product-price",
  "registryDependencies": [
    "badge",
    "group",
    "inline",
    "text",
    "utils"
  ],
  "runtime": "vue",
  "title": "Product Price",
  "type": "registry:component"
}
