[material-ui][Typography] Trouble adding new boolean props #41769
Labels
component: Typography
The React component.
customization: theme
Centered around the theming features
package: material-ui
Specific to @mui/material
status: expected behavior
Does not imply the behavior is intended. Just that we know about it and can't work around it
Steps to reproduce
I want to add new props inside a MUI component specifically Typography
Everything seems to work fine with number and string types. But with boolean type it gives a warning.
https://codesandbox.io/p/sandbox/elated-panna-lkccky?file=%2Fsrc%2FDemo.tsx%3A9%2C33****
Current behavior
These props are passed directly into the DOM:
Expected behavior
Adds new props that do not appear in the DOM. No error warning appears
Context
Add new props and style based on conditions from new props (not overwriting existing props)
Your environment
No response
Search keywords: Adding props
The text was updated successfully, but these errors were encountered: