checkboxes

This commit is contained in:
Alex Holliday committed 2025-11-24 18:54:52 +00:00
1 parent e4d6e0930f
commit 9be77a547d
2 files changed
+14 -8

No files matched your search

+5 -4
View File
@@ -8,7 +8,10 @@ type CheckboxInputProps = CheckboxProps & {
label?: string;
};
export const CheckboxInput = forwardRef<HTMLInputElement, CheckboxInputProps>(
function CheckboxInput({ sx, ...props }: CheckboxInputProps, ref: React.Ref<HTMLInputElement>) {
function CheckboxInput(
{ sx, ...props }: CheckboxInputProps,
ref: React.Ref<HTMLInputElement>
) {
const theme = useTheme();
return (
<Checkbox
@@ -35,9 +38,7 @@ export const CheckboxInput = forwardRef<HTMLInputElement, CheckboxInputProps>(
stroke: "currentColor",
fill: "none",
},
"&.Mui-checked svg rect": {
fill: theme.palette.accent.main,
},
...sx,
}}
/>