March 2019
Intermediate to advanced
534 pages
14h 52m
English
There might be times when hiding the rightmost column makes more sense than trying to accommodate it with the screen width. You can use the Hidden component for this. It's already imported in the example, as follows:
import Hidden from '@material-ui/core/Hidden';
To use it, you wrap the last column with it. For example, here's what the last column looks like now:
<Grid item xs={3}> <Grid container direction="column" spacing={2}> <Grid item> <Paper className={classes.paper}> <Typography>Seven</Typography> </Paper> </Grid> <Grid item> <Paper className={classes.paper}> <Typography>Eight</Typography> </Paper> </Grid> </Grid></Grid>
If you want to hide this column at a certain breakpoint, you can wrap the column with Hidden, like ...
Read now
Unlock full access