{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "checkbox",
  "title": "Checkbox",
  "description": "A checkbox component for toggling options.",
  "dependencies": [],
  "registryDependencies": [],
  "files": [
    {
      "path": "src/components/ui/checkbox.tsx",
      "content": "\"use client\";\n\nimport React, { forwardRef } from \"react\";\nimport type { ElementRef, ComponentPropsWithoutRef, ReactNode } from \"react\";\nimport * as CheckboxPrimitive from \"@radix-ui/react-checkbox\";\nimport { Check } from \"phosphor-react\";\nimport { cn } from \"@/stories/lib/utils\";\n\nconst Checkbox = forwardRef<\n  ElementRef<typeof CheckboxPrimitive.Root>,\n  ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root> & {\n    icon?: ReactNode;\n    checkedIcon?: ReactNode;\n  }\n>(({ className, icon, checkedIcon, ...props }, ref) => (\n  <CheckboxPrimitive.Root\n    ref={ref}\n    className={cn(\n      \"group peer\",\n      {\n        \"border-primary focus-visible:ring-ring data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground h-5 w-5 shrink-0 rounded-sm border bg-white shadow focus-visible:outline-none focus-visible:ring-1 disabled:cursor-not-allowed disabled:opacity-25  hover:outline-offset-[3px] hover:outline-1 hover:outline-secondary  hover:outline disabled:hover:outline-none\": true,\n      },\n      className,\n    )}\n    {...props}\n  >\n    <span className=\"group-data-[state=checked]:hidden\">{icon}</span>\n    <span className=\"group-data-[state=unchecked]:hidden\">{checkedIcon}</span>\n\n    {!checkedIcon && (\n      <CheckboxPrimitive.Indicator\n        className={cn(\"flex items-center justify-center text-current\")}\n      >\n        <Check className=\"h-4 w-4\" />\n      </CheckboxPrimitive.Indicator>\n    )}\n  </CheckboxPrimitive.Root>\n));\nCheckbox.displayName = CheckboxPrimitive.Root.displayName;\n\nexport { Checkbox };\n",
      "type": "registry:ui",
      "target": "components/ui/checkbox.tsx"
    }
  ],
  "type": "registry:ui"
}