You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
571 B
29 lines
571 B
import { |
|
Checkbox as MUICheckbox, |
|
checkboxClasses as muiCheckboxClasses, |
|
CheckboxProps as MUICheckboxProps, |
|
} from '@mui/material'; |
|
import { FC } from 'react'; |
|
|
|
import { GREY } from '../lib/consts/DEFAULT_THEME'; |
|
|
|
type CheckboxProps = MUICheckboxProps; |
|
|
|
const Checkbox: FC<CheckboxProps> = ({ sx, ...checkboxProps }) => ( |
|
<MUICheckbox |
|
{...{ |
|
...checkboxProps, |
|
sx: { |
|
color: GREY, |
|
|
|
[`&.${muiCheckboxClasses.checked}`]: { color: GREY }, |
|
|
|
...sx, |
|
}, |
|
}} |
|
/> |
|
); |
|
|
|
export type { CheckboxProps }; |
|
|
|
export default Checkbox;
|
|
|