'Material UI MuiClockPicker style overrides
I am curious how can I override styles for MuiClockPicker?
I find out that this override at createTheme actually works for me, but I recived an error from a typescript:
TS2322: Type '{ MuiOutlinedInput: { styleOverrides: { root: { color: string; border: string; }; }; }; MuiInputLabel: { styleOverrides: { root: { color: string; backgroundColor: string; paddingRight: string; paddingLeft: string; }; }; }; ... 4 more ...; MuiClockPicker: { ...; }; }' is not assignable to type 'Components'. Object literal may only specify known properties, and 'MuiClockPicker' does not exist in type 'Components'.
Here is a code:
import { createTheme } from '@mui/material/styles'
export const theme = createTheme({
...
components: {
MuiClockPicker: {
styleOverrides: {
arrowSwitcher: {
display: 'none',
},
},
},
},
})
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
