{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "checkbox",
  "title": "Checkbox",
  "description": "`checked onCheckedChange`",
  "dependencies": [
    "@rn-primitives/checkbox@^1.5.2",
    "lucide-react-native@^1.21.0"
  ],
  "registryDependencies": [
    "@kit-native/icon",
    "@kit-native/lib-utils"
  ],
  "files": [
    {
      "path": "components/ui/checkbox.tsx",
      "content": "import { Icon } from '@/components/ui/icon';\nimport { cn } from '@/lib/utils';\nimport * as CheckboxPrimitive from '@rn-primitives/checkbox';\nimport { Check } from 'lucide-react-native';\nimport { Platform } from 'react-native';\n\nconst DEFAULT_HIT_SLOP = 24;\n\nfunction Checkbox({\n  className,\n  checkedClassName,\n  indicatorClassName,\n  iconClassName,\n  ...props\n}: React.ComponentProps<typeof CheckboxPrimitive.Root> & {\n    checkedClassName?: string;\n    indicatorClassName?: string;\n    iconClassName?: string;\n  }) {\n  return (\n    <CheckboxPrimitive.Root\n      className={cn(\n        'border-input dark:bg-input/30 size-6 shrink-0 rounded-[6px] border shadow-sm',\n        Platform.select({\n          web: 'focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive peer cursor-default outline-none transition-shadow focus-visible:ring-[3px] disabled:cursor-not-allowed',\n          native: 'overflow-hidden',\n        }),\n        props.checked && cn('border-primary', checkedClassName),\n        props.disabled && 'opacity-50',\n        className\n      )}\n      hitSlop={DEFAULT_HIT_SLOP}\n      {...props}>\n      <CheckboxPrimitive.Indicator\n        className={cn('bg-primary h-full w-full items-center justify-center', indicatorClassName)}>\n        <Icon\n          as={Check}\n          size={12}\n          strokeWidth={Platform.OS === 'web' ? 2.5 : 3.5}\n          className={cn('text-primary-foreground', iconClassName)}\n        />\n      </CheckboxPrimitive.Indicator>\n    </CheckboxPrimitive.Root>\n  );\n}\n\nexport { Checkbox };\n",
      "type": "registry:ui",
      "target": "components/ui/checkbox.tsx"
    }
  ],
  "meta": {
    "exports": [
      "Checkbox"
    ],
    "api": "<Checkbox checked onCheckedChange disabled? />"
  },
  "docs": "Run `npx expo install --fix` afterwards so Expo SDK packages match your SDK. Needs the kit theme (`@kit-native/theme`) and `KitThemeProvider` from `@kit-native/lib-theme-context` at the root.",
  "categories": [
    "inputs"
  ],
  "type": "registry:ui"
}