{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "checkbox-06",
  "title": "Controlled Checkbox",
  "description": "A controlled checkbox component",
  "registryDependencies": [
    "checkbox"
  ],
  "files": [
    {
      "path": "src/components/customized/checkbox/checkbox-06.tsx",
      "content": "\"use client\";\n\nimport type { Checkbox as CheckboxPrimitive } from \"radix-ui\";\nimport { useState } from \"react\";\nimport { Checkbox } from \"@/registry/ui/checkbox\";\n\nexport default function ControlledCheckboxDemo() {\n  const [checked, setChecked] = useState<CheckboxPrimitive.CheckedState>(false);\n\n  return (\n    <div className=\"flex items-center space-x-2\">\n      <Checkbox\n        checked={checked}\n        id=\"terms-controlled\"\n        onCheckedChange={setChecked}\n      />\n      <label\n        className=\"font-medium text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70\"\n        htmlFor=\"terms-controlled\"\n      >\n        Accept terms and conditions\n      </label>\n    </div>\n  );\n}\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component"
}