{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "checkbox", "title": "Checkbox", "description": "A toggle control for binary choices, supporting checked, unchecked, and indeterminate states.", "dependencies": [ "@base-ui/react" ], "files": [ { "path": "packages/ui/src/checkbox.tsx", "content": "\"use client\";\n\nimport { Checkbox as CheckboxPrimitive } from \"@base-ui/react/checkbox\";\nimport { Check as CheckIcon } from \"lucide-react\";\nimport { cn } from \"./utils\";\n\nfunction Checkbox({ className, ...props }: CheckboxPrimitive.Root.Props) {\n return (\n \n svg]:size-3.5\",\n // Micro-animation: scale + opacity transition\n \"transition-[transform,opacity] duration-150\",\n // Enter: animate from small + transparent\n \"data-[starting-style]:scale-50 data-[starting-style]:opacity-0\",\n // Exit: animate to small + transparent\n \"data-[ending-style]:scale-50 data-[ending-style]:opacity-0\",\n // Hide when unchecked (after exit transition completes)\n \"data-[unchecked]:hidden\"\n )}\n data-slot=\"checkbox-indicator\"\n keepMounted\n >\n \n \n \n );\n}\n\nexport { Checkbox };\n", "type": "registry:ui" } ], "type": "registry:ui" }