Material-ui: Grid container gutter in Next

Created on 5 Nov 2017  路  5Comments  路  Source: mui-org/material-ui

I was wondering how to set the gutter on a Grid container as I couldn't find anything in the documentation.
Is it something I have to implement myself?

I'm new to Material UI and coming from stuff like Bootstrap and Semantic UI. Probably the grid being fluid confuses me. :)

Grid question

Most helpful comment

Oh, sorry, I wasn't referring to the space between the grid items but to the left/right margins of the container.

All 5 comments

You are looking for the spacing property. We are happy to see you among us :).

Oh, sorry, I wasn't referring to the space between the grid items but to the left/right margins of the container.

@nickdima Oh, you have to set this with CSS.

OK, so I have to handle it myself for every breakpoint.
Thanks!

We haven't designed an abstraction for it. I think that it's not the Grid responsibility to do it. I would rather see a new component. But it would only work if this is something generic enough.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sys13 picture sys13  路  3Comments

chris-hinds picture chris-hinds  路  3Comments

finaiized picture finaiized  路  3Comments

pola88 picture pola88  路  3Comments

revskill10 picture revskill10  路  3Comments