[MUI v6] Box component warns about TypeScript type #43955
Labels
component: Box
The React component.
status: waiting for maintainer
These issues haven't been looked at yet by a maintainer
Steps to reproduce
Based on the example provided from MUI
https://github.com/mui/material-ui/tree/master/examples/material-ui-nextjs-ts
I have added the following code
I use this method in MUI v5 without any problems. However, the error appears in MUI v6. I read in the documentation that components were removed in MUI v6 https://github.com/mui/material-ui/releases/tag/v6.0.0-rc.0
But I still see the document is still in use:
https://mui.com/material-ui/react-box/#basics
So the component in Box is actually removed?
Current behavior
Error message appears
Expected behavior
No TypeScript errors appeared.
I would like to understand clearly how to use Box in MUI v6.
Because in the project I use a lot of places like:
...
So it will take a lot of time to restructure the whole thing.
Looking forward to suitable suggestions for this situation. Thanks!
The text was updated successfully, but these errors were encountered: