{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "checkbox",
  "type": "registry:ui",
  "title": "Checkbox",
  "description": "An easily stylable checkbox component.",
  "dependencies": [
    "@base-ui/react@1.8.0",
    "lucide-react@0.561.0"
  ],
  "registryDependencies": [
    "https://ghost-ui.com/r/ghost-tokens.json",
    "https://ghost-ui.com/r/foundation.json",
    "https://ghost-ui.com/r/base-styled.json",
    "https://ghost-ui.com/r/tooltip.json"
  ],
  "files": [
    {
      "path": "src/components/ui/checkbox.tsx",
      "type": "registry:component",
      "target": "@ui/checkbox.tsx",
      "content": "\"use client\";\n\nimport { Checkbox as BaseCheckbox } from \"@base-ui/react/checkbox\";\nimport { Check, Minus } from \"lucide-react\";\n\nimport { styled, choiceStyled } from \"./base-styled\";\nimport { withNativeValidationTooltip } from \"./tooltip\";\n\nexport const Checkbox = {\n  ...BaseCheckbox,\n  Row: /* @__PURE__ */ choiceStyled(\"label\", \"ui-check-row\"),\n  Root: /* @__PURE__ */ withNativeValidationTooltip(choiceStyled(BaseCheckbox.Root, \"ui-check\")),\n  Indicator: /* @__PURE__ */ styled(BaseCheckbox.Indicator, \"ui-check-indicator\", (props, state) => (\n    <span {...props}>\n      {props.children ?? (state.indeterminate\n        ? <Minus aria-hidden size={14} strokeWidth={1.5} style={{ display: \"block\" }} />\n        : <Check aria-hidden size={14} strokeWidth={1.5} style={{ display: \"block\" }} />)}\n    </span>\n  )),\n};\n"
    }
  ]
}
