Download src/components/ui/checkbox.jsx from guisousa/BaseAdmin: direct link, hf CLI and curl.
- Browser
- Download file 449 Bytes
-
https://huggingface.co/spaces/guisousa/BaseAdmin/resolve/main/src/components/ui/checkbox.jsx
- Command line
-
hf download hf://spaces/guisousa/BaseAdmin/src/components/ui/checkbox.jsx
-
curl -L -o checkbox.jsx https://huggingface.co/spaces/guisousa/BaseAdmin/resolve/main/src/components/ui/checkbox.jsx
449 Bytes
| import React from "react"; | |
| export const Checkbox = React.forwardRef(({ className = "", checked, onCheckedChange, ...props }, ref) => { | |
| return ( | |
| <input | |
| type="checkbox" | |
| ref={ref} | |
| className={`w-4 h-4 rounded border outline-none accent-black ${className}`} | |
| checked={!!checked} | |
| onChange={(e) => onCheckedChange && onCheckedChange(e.target.checked)} | |
| {...props} | |
| /> | |
| ); | |
| }); | |
| Checkbox.displayName = "Checkbox"; | |