Want to organize material-ui Grid into rows? You are close with the second block of code. I found that you could simply create 2 distinct Grid sections such as:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | <div> <Grid id="top-row" container spacing={24}> <Grid item xs={4}> <Paper className={classes.paper}>Grid cell 1, 1</Paper> </Grid> <Grid item xs={4}> <Paper className={classes.paper}>Grid cell 2, 1</Paper> </Grid> </Grid> <Grid id="bottom-row" container spacing={24}> <Grid item xs={4}> <Paper className={classes.paper}>Grid cell 1, 2</Paper> </Grid> <Grid item xs={4}> <Paper className={classes.paper}>Grid cell 2, 2</Paper> </Grid> </Grid> </div> |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.