{"$schema":"https://ui.logic2b.com/schema/registry-item.json","name":"checkbox","type":"registry:ui","description":"A control that allows the user to toggle between checked, unchecked and indeterminate states. Use for boolean options in forms, built on Radix Checkbox.","dependencies":["radix-ui","lucide-react"],"registryDependencies":["utils"],"files":[{"path":"ui/checkbox.tsx","type":"registry:ui","content":"\"use client\"\n\nimport * as React from \"react\"\nimport { Checkbox as CheckboxPrimitive } from \"radix-ui\"\nimport { CheckIcon } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Checkbox({\n  className,\n  ...props\n}: React.ComponentProps<typeof CheckboxPrimitive.Root>) {\n  return (\n    <CheckboxPrimitive.Root\n      data-slot=\"checkbox\"\n      className={cn(\n        \"peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50\",\n        className\n      )}\n      {...props}\n    >\n      <CheckboxPrimitive.Indicator\n        data-slot=\"checkbox-indicator\"\n        className=\"flex items-center justify-center text-current transition-none\"\n      >\n        <CheckIcon className=\"size-3.5\" />\n      </CheckboxPrimitive.Indicator>\n    </CheckboxPrimitive.Root>\n  )\n}\n\nexport { Checkbox }\n"}],"categories":["form"],"accessibility":{"support":"primitive","pattern":"checkbox","primitive":"Radix Checkbox","keyboard":[{"keys":["Enter","Space"],"action":"Activate the focused control."}],"aria":["Exposes role=checkbox and aria-checked, including the mixed state."],"consumer":["Associate the control with a visible Label or aria-label."]},"api":{"source":"src/ui/checkbox.tsx","exports":[{"name":"Checkbox","kind":"component","propsType":"React.ComponentProps<typeof CheckboxPrimitive.Root>"}]}}