I'm struggling to center the content of my Typography elements with default and caption variants using the align="center"
property. The alignment doesn't seem to be working properly, especially for the variant as caption. Here is a snippet of the code:
render() {
return (
<div>
<Typography align="center">Centered text</Typography>
<Typography color="textSecondary" variant="caption" align="center">A Caption!</Typography>
</div>
);
}
To help demonstrate the issue, I've set up a sample on StackBlitz. Can anyone provide assistance in solving this problem?