Composition issues due to WithWrapperProps
#288
Labels
bug
Something isn't working
package:react
Issues/PRs related to the `@oxygen-ui/react` package.
typescript
Issues related to typings
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 :
The text was updated successfully, but these errors were encountered: