Files
aso/frontend/dashboard/src/theme/overrides/Slider.ts
2023-07-03 11:39:08 +07:00

32 lines
692 B
TypeScript

import { Theme } from '@mui/material/styles';
// ----------------------------------------------------------------------
export default function Slider(theme: Theme) {
const isLight = theme.palette.mode === 'light';
return {
MuiSlider: {
defaultProps: {
size: 'small'
},
styleOverrides: {
root: {
'&.Mui-disabled': {
color: theme.palette.action.disabled
}
},
markLabel: {
fontSize: 13,
color: theme.palette.text.disabled
},
valueLabel: {
borderRadius: 8,
backgroundColor: theme.palette.grey[isLight ? 800 : 700]
}
}
}
};
}