{
  "$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\" module>\n  import type { Snippet } from \"svelte\";\n\n  export type CartCountProps = {\n    count?: number;\n    label: string;\n  };\n</script>\n\n<script lang=\"ts\">\n  import Inline from \"../compose/Inline.svelte\";\n  import LucideIcon from \"../icons/LucideIcon.svelte\";\n  import { tpl } from \"../utils\";\n\n  let { count = 0, label }: CartCountProps = $props();\n</script>\n\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",
      "path": "components/cart-count.svelte",
      "target": "components/cart-count.svelte"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "svelte",
      "component"
    ]
  },
  "name": "cart-count",
  "registryDependencies": [
    "inline",
    "lucide-icon",
    "utils"
  ],
  "runtime": "svelte",
  "title": "Cart Count",
  "type": "registry:component"
}
