🍭MUI Global styleOverrides
TSS Support MUI Global style overrides from createTheme
out of the box. Previously in material-ui v4 it was: global theme overrides.
By default, however, only the theme
object is passed to the callbacks, if you want to pass the correct props
, and a specific ownerState
have a look at the following example:
MyComponent.tsx
Declaration of the theme:
Usage of the component:
Result:
You can see the code here and it's live here (near the bottom of the page).
Last updated
Was this helpful?