-
-
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
App Layout component #14519
Comments
This comment has been minimized.
This comment has been minimized.
@murbanowicz Are you interested in a specific layout "output"? |
@oliviertassinari great! Is there anything in LAB already? I don't see anything yet. The best output would be something similar to Quasar Framework. Crazy easy to use and so ... flexible! Few props and you have 100% responsive, customized layout but AntD approach is also not that bad. Do you have any time target for this? I have started working with MUI and so much effort required to put layout together put me on hold 😢 |
^^ "It's work in progress: #14499."
Depending on what sort of layout you're after, you could try the dashboard page layout example: https://material-ui.com/getting-started/templates/ |
And if you're interested for the state part only of the Layout, you could also provide a hook in the same spirit as https://github.com/techniq/mui-app-container 👌 |
What is the difference between |
@stunaz Good question
You might be confused by What's the difference between Grid and Box? You should be able to replace the Grid usage with the Box. However, the Box is a direct mapping to CSS properties, while the Grid tries to be smarter, with a more abstracted API. The Grid should be the default go-to solution. Only consider the Box or custom CSS if it's not the case. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Another option for layout component. works with material-ui v4 and v5
|
@siriwatknp I have updated the So far, It seems that the layout is the kind of problem that we have solved with the Templates section and the premium templates. I suspect we could further solve the problem with a Material-UI Blocks project (copy & paste of the source). The challenges with this layout pain:
Regarding the next step. I suspect the right answer is one of these 3:
|
Expected Behavior 🤔
It should provide a configurable layout out of the box without so much additional coding required.
This is a really basic feature and e.g. Ant Design does it great and so simple.
Current Behavior 😯
Any layout has to be done with a lot of coding to handle RWD, different drawer variants etc.
Examples 🌈
Origen Studio Layout component which is using Material UI!: https://github.com/OrigenStudio/material-ui-layout.
Quasar Framework Layout (VueJS). Such a great implementation for VueJS. Easy, flexible, and reliable.
https://v1.quasar-framework.org/layout/layout
and also to show how simple it can/should be Ant Design Layout: https://ant.design/components/layout/
Context 🔦
It is time-consuming to set up the layout with Material UI and everyone has to do it on his/her own instead of the job being done once in the MUI repo and being reused across all projects.
Benchmark
Advanced layout components: mui/toolpad#3280
The text was updated successfully, but these errors were encountered: