-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No Box Component in MUI #43898
Comments
Hi @jmhess77, can you explain what you mean by there being no Box component? Both Material UI and MUI System provide this component: import Box from '@mui/material/Box';
// or
import Box from '@mui/system/Box'; What version of MUI System and/or Material UI are you using? Can you share a minimal reproduction demonstrating that you're not able to import a Box? Or do you mean something else? I agree that some of the docs on these layout/container components could use more details about intended usage.
I hope this helps! |
Since the issue is missing key information and has been inactive for 7 days, it has been automatically closed. If you wish to see the issue reopened, please provide the missing information. |
Thanks for the info @jmhess77, the |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note @jmhess77 How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
Related page
https://mui.com/material-ui/react-box/
Kind of issue
Unclear explanations
Issue description
On the MUI.com documentation page it talks about using the "box" component however there is no "box" component included in our copy of the MUI system. I see the use of the box in the layer panel so I know it's being used throughout the library. Am I and my team missing something here?
Also, why is the box component located in the "surfaces" section of the documentation site when it's a layout component?
Context
No Box Component
We are trying to decide when to use the paper element vs. container vs box (which isn't available) vs. stack in our design specs. I have spoken with my manager and have told him the container is to be used more for the "wrapper" for our content.
However he thinks the container is to be used for anything in the UI? I look at the container as just that, something to contain the entire UI. I would use the "paper or stack" component for individual regions or sections of a UI. Is this appraoch wrong? I would appreciate any clarification that I could take back to my manager and team. And why is there no box?
Thanks
Search keywords: MUI box component
The text was updated successfully, but these errors were encountered: