{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "checkbox", "title": "Checkbox (Base UI)", "description": "Compact animated checkbox with checked, indeterminate, disabled, validation, and form states. Base UI flavor.", "dependencies": [ "@base-ui/react", "framer-motion" ], "registryDependencies": [ "https://zeron-ui.vercel.app/r/surfaces.json", "utils" ], "files": [ { "path": "src/components/ui/checkbox.tsx", "content": "\"use client\";\n\nimport { Checkbox as CheckboxPrimitive } from \"@base-ui/react/checkbox\";\nimport { motion, useReducedMotion } from \"framer-motion\";\nimport { cn } from \"@/lib/utils\";\n\nexport type CheckboxProps = Omit<\n CheckboxPrimitive.Root.Props,\n \"checked\" | \"indeterminate\"\n> & {\n checked?: boolean | \"indeterminate\";\n indeterminate?: boolean;\n};\n\n/**\n * A compact Base UI checkbox aligned with the controls used throughout\n * Zeron Design. Pass `checked=\"indeterminate\"` or `indeterminate` for a\n * mixed state.\n */\nfunction Checkbox({\n checked,\n className,\n indeterminate,\n ...props\n}: CheckboxProps) {\n const isIndeterminate = checked === \"indeterminate\" || indeterminate;\n const reduceMotion = useReducedMotion() ?? false;\n\n return (\n \n \n \n \n \n \n \n );\n}\n\nexport { Checkbox };\n", "type": "registry:ui", "target": "components/ui/checkbox.tsx" } ], "type": "registry:ui" }