{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "checkbox",
  "title": "Checkbox",
  "description": "A 16pt rounded checkbox that fills with the accent color, with mixed state support.",
  "dependencies": [
    "@base-ui/react"
  ],
  "registryDependencies": [
    "@cupertinoui/macos-theme"
  ],
  "files": [
    {
      "path": "registry/macos/ui/checkbox.tsx",
      "content": "\"use client\"\n\nimport { Checkbox as CheckboxPrimitive } from \"@base-ui/react/checkbox\"\n\nimport { cn } from \"@/lib/utils\"\n\n// A macOS 27 checkbox: a 16px rounded square filled with the accent color\n// when checked. In an inactive window the fill turns grey and the mark dark.\nfunction Checkbox({\n  className,\n  ...props\n}: CheckboxPrimitive.Root.Props) {\n  return (\n    <CheckboxPrimitive.Root\n      data-slot=\"checkbox\"\n      className={cn(\n        \"peer group/checkbox size-4 shrink-0 rounded-[5.5px] bg-mac-fill-primary text-white outline-none focus-visible:mac-focus-ring active:bg-black/19 data-disabled:cursor-not-allowed data-disabled:opacity-40 aria-invalid:mac-focus-ring data-checked:bg-mac-accent data-indeterminate:bg-mac-accent dark:active:bg-white/19 group-data-[inactive]/window:data-checked:bg-black/14 group-data-[inactive]/window:data-checked:text-black/70 group-data-[inactive]/window:data-indeterminate:bg-black/14 group-data-[inactive]/window:data-indeterminate:text-black/70 dark:group-data-[inactive]/window:data-checked:bg-white/18 dark:group-data-[inactive]/window:data-checked:text-white/70 dark:group-data-[inactive]/window:data-indeterminate:bg-white/18 dark:group-data-[inactive]/window:data-indeterminate:text-white/70\",\n        className\n      )}\n      {...props}\n    >\n      <CheckboxPrimitive.Indicator\n        data-slot=\"checkbox-indicator\"\n        className=\"grid size-full place-content-center text-current transition-none\"\n      >\n        <svg\n          viewBox=\"0 0 10 10\"\n          aria-hidden=\"true\"\n          className=\"size-[9.5px] group-data-indeterminate/checkbox:hidden\"\n        >\n          <path\n            d=\"M1.4 5.4 3.9 8 8.6 1.9\"\n            fill=\"none\"\n            stroke=\"currentColor\"\n            strokeWidth=\"1.9\"\n            strokeLinecap=\"round\"\n            strokeLinejoin=\"round\"\n          />\n        </svg>\n        <span className=\"hidden h-0.5 w-[6.5px] rounded-full bg-current group-data-indeterminate/checkbox:block\" />\n      </CheckboxPrimitive.Indicator>\n    </CheckboxPrimitive.Root>\n  )\n}\n\nexport { Checkbox }\n",
      "type": "registry:ui"
    }
  ],
  "type": "registry:ui"
}