Open brionmario opened 2 days ago
As a temp workaround, we can remove the usage of muiName
in the composed components.
I've already raised this concern in an existing MUI discussion: https://github.com/mui/material-ui/issues/32420#issuecomment-2410430433
Describe the issue:
If we use another composed MUI component in the
component
prop, typings break with the following error.Uppon investigation, it was found that extending
OverridableComponent
withWithWrapperProps;
is the culprit.How to reproduce:
Try to use a composed MUI component in the
component
pro and access an attribute specific to that component. (elevation
is specific toPaper
)ex:
Expected behavior:
Typescript shouldn't complain and intenseness should work.
Additional context :