-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Typography] types cannot be a callback for color
prop
#43589
Comments
This breaking change was mentioned in https://mui.com/material-ui/migration/migrating-from-deprecated-apis/#system-props, but maybe we should expand a bit on it. The idea is that you can use the
I hope the explanation help. @siriwatknp to consider if we should improve a bit the migration guide on this one. |
@mnajdova Thanks for the quick reply 🙂 |
Thanks @mnajdova, will do. |
color
prop
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note We value your feedback @elnatanitzan! How was your experience with our support team? |
Steps to reproduce
Links to live example:
Steps:
Just use
Typography
component like this:Since 6.0.0 version, although the code itself works and the color is applied - TS display 2 errors for this implementation:
From reading the declarations files, it seems that you changed the type of color prop.
This is the type in version 5.x:
And this is the type in version 6.x:
Current behavior
No response
Expected behavior
No response
Context
No response
Your environment
npx @mui/envinfo
tsconfig
Search keywords: Typography, color prop, typescipt, ts, error
The text was updated successfully, but these errors were encountered: