{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Cart Count 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 cart count as a live status (role status, aria-live polite): a bag icon and the words with the number. The\n  page updates the number; screen readers announce it.\n-->\n<script lang=\"ts\">\nexport type CartCountProps = {\n  count?: number;\n  label: string;\n};\n</script>\n\n<script setup lang=\"ts\">\nimport Inline from \"../compose/Inline.vue\";\nimport LucideIcon from \"../icons/LucideIcon.vue\";\nimport { tpl } from \"../utils\";\n\nconst { count = 0, label } = defineProps<CartCountProps>();\n</script>\n\n<template>\n  <Inline\n    class=\"inline-flex h-8 items-center gap-2 rounded bg-muted px-4 text-sm font-medium\"\n    role=\"status\"\n    aria-live=\"polite\"\n    data-slot=\"cart-count\"\n  >\n    <LucideIcon name=\"shopping-bag\" :size=\"16\" />\n    <Inline>\n      {{ tpl(label, (count == null ? undefined : String(count))) }}\n    </Inline>\n  </Inline>\n</template>\n",
      "path": "components/cart-count.vue",
      "target": "components/cart-count.vue"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "vue",
      "component"
    ]
  },
  "name": "cart-count",
  "registryDependencies": [
    "inline",
    "lucide-icon",
    "utils"
  ],
  "runtime": "vue",
  "title": "Cart Count",
  "type": "registry:component"
}
