{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "cn",
  "type": "registry:lib",
  "title": "cn + money",
  "description": "Class merge helper and currency formatter every StoreKit item uses.",
  "author": "StoreKit <hello@storekit.dev>",
  "categories": [
    "ui"
  ],
  "dependencies": [
    "clsx",
    "tailwind-merge"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "lib/cn.ts",
      "content": "import { clsx, type ClassValue } from \"clsx\"\nimport { twMerge } from \"tailwind-merge\"\n\n/** Merge Tailwind classes safely. Every StoreKit component imports this. */\nexport function cn(...inputs: ClassValue[]) {\n  return twMerge(clsx(inputs))\n}\n\n/** Format integer cents as USD. Swap the locale/currency for your store. */\nexport function money(cents: number, currency = \"USD\", locale = \"en-US\") {\n  return new Intl.NumberFormat(locale, { style: \"currency\", currency }).format(cents / 100)\n}\n",
      "type": "registry:lib",
      "target": "components/storekit/lib/cn.ts"
    }
  ],
  "meta": {
    "section": "ui"
  }
}