I'm currently working with Material UI and have successfully created a card. My goal is to center the text both horizontally and vertically within the card. However, I am facing an issue where the text remains stuck at the top of the card instead of being centered. I have reviewed Material UI documentation but am unable to figure out why the text alignment is not working as expected.
Code
<Card className={classes.root}>
<CardContent className={classes.bigCard}>
<Grid
align="center"
container
direction="column"
justify="center"
spacing={0}
style={{ backgroundColor: 'teal' }}
>
<Grid item style={{ backgroundColor: 'yellow' }}>
<h1>hey</h1>
</Grid>
</Grid>
</CardContent>
</Card>