Created
May 12, 2020 12:53
-
-
Save sakulstra/7f2fa458777b7cdc1b7116135756316d to your computer and use it in GitHub Desktop.
alternating mui grid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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