You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The theme callback throws an error that says - 'Parameter theme implicitly has an any type'
Expected behavior
The theme callback should be accepted like it was in the previous version of MUI and is also accepted by other components such as Box and Stack
Context
We have a fairly large application that uses Typography everywhere. We usually use the color prop to set the color for the text pass the theme callback and use it to pull the specified colors from our theme.
sanketnaik99
changed the title
Typography component lo longer accepts the theme callback after upgrading to v6
Typography component no longer accepts the theme callback after upgrading to v6
Aug 27, 2024
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.
Note
We value your feedback @sanketnaik99! How was your experience with our support team?
If you could spare a moment, we'd love to hear your thoughts in this brief Support Satisfaction survey. Your insights help us improve!
@sanketnaik99 did you figure out what was going on here? Is it related to using the latest version of TypeScript? I just upgraded TypeScript and started running into this 😞
Steps to reproduce
Link to live example: (required)
Steps:
Current behavior
The theme callback throws an error that says - 'Parameter
theme
implicitly has anany
type'Expected behavior
The theme callback should be accepted like it was in the previous version of MUI and is also accepted by other components such as Box and Stack
Context
We have a fairly large application that uses Typography everywhere. We usually use the color prop to set the color for the text pass the theme callback and use it to pull the specified colors from our theme.
Your environment
npx @mui/envinfo
Search keywords: Typography, v6
The text was updated successfully, but these errors were encountered: