So, I want to create a page layout what will look like this:
For example, in Bootstrap I can simple write:
<div class="container">
<!-- Content here -->
</div>
And everything will be cool.
Is there a good clean solution to do something like this in Material-UI? By default Grid system create fluid-container with full width.
Bootstrap has a responsive grid system, with custom breakpoints. It offers a mobile-first design that makes a single code scale for multiple devices like phones, tablets, and desktops.
The .container class provides a responsive fixed width container. The .container-fluid class provides a full width container, spanning the entire width of the viewport.
Bootstrap's grid system uses a series of containers, rows, and columns to layout and align content. It's built with flexbox and is fully responsive. Below is an example and an in-depth look at how the grid comes together.
Bootstrap comes with three different containers: .container , which sets a max-width at each responsive breakpoint. .container-fluid , which is width: 100% at all breakpoints. .container-{breakpoint} , which is width: 100% until the specified breakpoint.
If you're looking for something that behaves like bootstrap's .container
then I would use Material UIs <Container />
tag. As a starting wrapper/container, I would not use the <Grid />
tag.
<Container maxWidth="lg">
<!-- Content here -->
</Container>
https://material-ui.com/components/container/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With