I need assistance centering the button within a Grid
layout using Material-UI
<Grid container style={{backgroundColor:'green'}} alignItems="center" justify="center" >
<Grid alignItems="center" justify="center" item xs={12}
style={{margin:'auto',width:"100%",backgroundColor:'white'}}>
<Button variant="contained" style={{margin:'auto'}}>
Next
</Button>
</Grid>
</Grid>
Even after applying alignment properties, the button remains on the left side.
Any suggestions on how I can achieve proper centering?