Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sakulstra/7f2fa458777b7cdc1b7116135756316d to your computer and use it in GitHub Desktop.
Save sakulstra/7f2fa458777b7cdc1b7116135756316d to your computer and use it in GitHub Desktop.
alternating mui grid
export default function Alternate({
reverse,
}) {
const classes = useStyles();
return (
<Grid container spacing={4} alignItems="center" className={classes.root}>
<Box clone order={{ sm: 1, ...(reverse ? { md: 2 } : {}) }}>
<Grid item sm={12} md={6} style={{ textAlign: "center" }}>
</Grid>
</Box>
<Box clone order={{ sm: 2, ...(reverse ? { md: 1 } : {}) }}>
<Grid item sm={12} md={6}>
</Grid>
</Box>
</Grid>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment