{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "core-badge-indicator",
  "type": "registry:lib",
  "title": "core/badge-indicator",
  "description": "Framework-free behaviour shared by the ui-* components (badge-indicator); no DOM, no lit. Copied from @purpurabog/ui 2.3.0; the package is the maintained source, this copy is yours to change. Icons from the Carbon Design System (Apache-2.0, © IBM Corp.; see THIRD-PARTY-NOTICES.md in the package).",
  "dependencies": [],
  "registryDependencies": [],
  "files": [
    {
      "path": "src/core/badge-indicator.ts",
      "type": "registry:lib",
      "target": "components/ui/core/badge-indicator.ts",
      "content": "/** What a Carbon badge indicator shows: the count, \"999+\" past 999, nothing (a dot) for none or 0. */\nexport function badgeText(count: number | undefined): string {\n    if (!count || count <= 0) return '';\n    return count > 999 ? '999+' : String(count);\n}\n"
    }
  ]
}
