{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "badge",
  "title": "Purple Rain Badge",
  "description": "A restrained status badge that keeps semantic meaning visible without decorative pills.",
  "dependencies": [
    "class-variance-authority"
  ],
  "registryDependencies": [
    "https://kit.scottelling.com/r/tokens.json"
  ],
  "files": [
    {
      "path": "registry/purple-rain/badge.tsx",
      "content": "import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst badgeVariants = cva(\n  \"inline-flex min-h-6 w-fit shrink-0 items-center gap-1.5 rounded-[var(--radius-control)] border px-2.5 py-1 text-xs font-semibold leading-none tracking-[-0.004em]\",\n  {\n    variants: {\n      variant: {\n        default: \"border-transparent bg-primary text-primary-foreground\",\n        secondary: \"border-transparent bg-secondary text-secondary-foreground\",\n        outline: \"border-border bg-transparent text-foreground\",\n        positive: \"border-positive bg-transparent text-positive\",\n        destructive: \"border-destructive bg-transparent text-destructive\",\n      },\n    },\n    defaultVariants: {\n      variant: \"default\",\n    },\n  },\n)\n\nfunction Badge({\n  className,\n  variant,\n  ...props\n}: React.ComponentProps<\"span\"> & VariantProps<typeof badgeVariants>) {\n  return <span data-slot=\"badge\" className={cn(badgeVariants({ variant }), className)} {...props} />\n}\n\nexport { Badge, badgeVariants }\n",
      "type": "registry:ui"
    }
  ],
  "type": "registry:ui"
}