{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "checkbox",
  "title": "Checkbox",
  "description": "Flag checkbox (ds-checkbox): secondary border, running tint when checked.",
  "dependencies": [
    "radix-ui@^1.6.7",
    "lucide-react@^1.49.0"
  ],
  "registryDependencies": [
    "@flag/utils"
  ],
  "files": [
    {
      "path": "registry/flag/ui/checkbox.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { CheckIcon } from \"lucide-react\"\nimport { Checkbox as CheckboxPrimitive } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\n\n// Flag COMPONENTS.md \"Checkbox\": 1.5px --color-control-border edge (3:1 on\n// every surface), --color-accent edge on the running tint when checked, focus\n// ring on keyboard focus only, no hover while disabled.\n// Tier A: .ds-checkbox / .ds-checkbox__box.\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 size-4 shrink-0 cursor-pointer rounded-[0.25rem] border-[1.5px] border-(--color-control-border) bg-(--color-overlay-soft) text-foreground [transition:var(--transition-fast)] outline-none enabled:hover:border-(--color-accent) focus-visible:shadow-(--focus-ring) disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive data-[state=checked]:border-(--color-accent) data-[state=checked]:bg-(--color-status-running-bg) data-[state=indeterminate]:border-(--color-accent) data-[state=indeterminate]:bg-(--color-status-running-bg)\",\n        className\n      )}\n      {...props}\n    >\n      <CheckboxPrimitive.Indicator\n        data-slot=\"checkbox-indicator\"\n        className=\"grid place-content-center text-current\"\n      >\n        <CheckIcon className=\"size-3\" strokeWidth={3} />\n      </CheckboxPrimitive.Indicator>\n    </CheckboxPrimitive.Root>\n  )\n}\n\nexport { Checkbox }\n",
      "type": "registry:ui"
    }
  ],
  "type": "registry:ui"
}