{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "credit-balance",
  "type": "registry:ui",
  "title": "Credit balance",
  "description": "Compact credit balance pill with a small label and a large tabular figure. Shows remaining credits or usage balance for AI and pay-as-you-go apps.",
  "dependencies": [],
  "registryDependencies": [
    "utils"
  ],
  "files": [
    {
      "path": "registry/ui/credit-balance.tsx",
      "type": "registry:ui",
      "target": "components/ui/credit-balance.tsx",
      "content": "\"use client\"\nimport * as React from \"react\"\nimport { cn } from \"@/lib/utils\"\n\nfunction CreditBalance({\n  balance,\n  label = \"Credits\",\n  className,\n}: {\n  balance: string\n  label?: string\n  className?: string\n}) {\n  return (\n    <div\n      data-slot=\"credit-balance\"\n      className={cn(\n        \"inline-flex items-baseline gap-2 rounded-xl border border-border bg-sunken px-3 py-2\",\n        className\n      )}\n    >\n      <span className=\"text-xs text-fg-muted\">{label}</span>\n      <span className=\"text-lg font-medium tracking-[-0.008em] tabular-nums text-fg\">{balance}</span>\n    </div>\n  )\n}\nexport { CreditBalance }\n"
    }
  ]
}
