'MUI5 theme aware sx prop and type checking
When using the sx prop and leveraging theme aware properties in TypeScript. Is type checking happening? How can I confirm this?
Solution 1:[1]
Currently, you can not.
As suggested by @NearHuscarl comment, I fill up a feature request about that.
You can follow it by this link: https://github.com/mui/material-ui/issues/32656
If you need the Typescript check on the color value, you can always stick with the theme.palette
property usage.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Soullivaneuh |