checkboxes
This commit is contained in:
1 parent
e4d6e0930f
commit
9be77a547d
2 files changed
+14
-8
No files matched your search
@@ -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,
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user