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
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 @eliprand! 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!
Steps to reproduce
Link to live example: https://stackblitz.com/edit/react-1rixxg?file=Demo.tsx
Steps:
Popover
)sx
property of a slot (I usepaper
)t
as the theme prop)Current behavior
Here is the
Popover
example from the docs.TypeScript will complain about the type of
t
in thesx
prop for thepaper
slot:But the code runs just fine, as expected.
Expected behavior
TypeScript should recognize a theme-based override and not complain.
Context
Trying to override properties of a slot with theme-based values.
Your environment
npx @mui/envinfo
Search keywords: slotprops sx
The text was updated successfully, but these errors were encountered: