{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "checkbox",
  "title": "Checkbox",
  "description": "Checkbox with checked, unchecked and indeterminate states.",
  "dependencies": [
    "@radix-ui/react-checkbox",
    "lucide-react"
  ],
  "registryDependencies": [
    "@corsair-ui/utils"
  ],
  "files": [
    {
      "path": "registry/default/ui/checkbox.tsx",
      "content": "\"use client\";\n\nimport * as CheckboxPrimitive from \"@radix-ui/react-checkbox\";\nimport { CheckIcon, MinusIcon } from \"lucide-react\";\nimport type { ComponentProps } from \"react\";\n\nimport { cn } from \"@/registry/default/lib/utils\";\n\n/** Pass `checked=\"indeterminate\"` for a partially selected group. Pair it with a Label. */\nfunction Checkbox({ className, ...props }: ComponentProps<typeof CheckboxPrimitive.Root>) {\n  return (\n    <CheckboxPrimitive.Root\n      data-slot=\"checkbox\"\n      className={cn(\n        \"peer group border-input bg-field text-primary-foreground size-4 shrink-0 cursor-pointer rounded-[4px] border\",\n        \"transition-[color,background-color,border-color,box-shadow] outline-none motion-reduce:transition-none\",\n        \"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]\",\n        \"aria-[invalid=true]:border-destructive aria-[invalid=true]:ring-destructive/20\",\n        \"data-[state=checked]:border-primary data-[state=checked]:bg-primary\",\n        \"data-[state=indeterminate]:border-primary data-[state=indeterminate]:bg-primary\",\n        \"disabled:cursor-not-allowed disabled:opacity-50\",\n        className\n      )}\n      {...props}\n    >\n      {/* The mark scales in while the box fills, and back out when cleared. */}\n      <CheckboxPrimitive.Indicator\n        data-slot=\"checkbox-indicator\"\n        className={cn(\n          \"flex items-center justify-center text-current\",\n          \"zoom-in-50 fade-in-0 zoom-out-50 fade-out-0 ease-out\",\n          \"motion-safe:data-[state=checked]:animate-in motion-safe:data-[state=indeterminate]:animate-in motion-safe:data-[state=unchecked]:animate-out\"\n        )}\n      >\n        <CheckIcon className=\"size-3.5 group-data-[state=indeterminate]:hidden\" />\n        <MinusIcon className=\"hidden size-3.5 group-data-[state=indeterminate]:block\" />\n      </CheckboxPrimitive.Indicator>\n    </CheckboxPrimitive.Root>\n  );\n}\n\nexport { Checkbox };\n",
      "type": "registry:ui"
    }
  ],
  "type": "registry:ui"
}