{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The cart count as a live status (role status, aria-live polite): a bag icon and the words with the number. The page updates the number; screen readers announce it.",
  "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 */\nimport { type ReactNode } from \"react\";\nimport { Inline } from \"../compose\";\nimport { LucideIcon } from \"../icons/LucideIcon\";\nimport { tpl } from \"../utils\";\n\nexport type CartCountProps = {\n  count?: number;\n  label: string;\n};\n\nexport function CartCount({ count = 0, label }: CartCountProps) {\n  return (\n    <Inline\n      className=\"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  );\n}\n",
      "path": "components/cart-count.tsx",
      "target": "components/cart-count.tsx"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "react",
      "component"
    ]
  },
  "name": "cart-count",
  "registryDependencies": [
    "compose",
    "lucide-icon",
    "utils"
  ],
  "runtime": "react",
  "title": "Cart Count",
  "type": "registry:component"
}
