I'm developing a React Application using Material-UI and facing difficulty in centering the 3 tabs within the blue AppBar. Currently, they are aligned to the left like this:
(unable to embed images at the moment, apologies)
This is the code snippet I'm working with:
<div>
{/* Tabs */}
<AppBar position="static" color="primary" style={{ position: 'fixed' }}>
<Tabs
fullWidth={true}
value={this.state.value}
onChange={this.handleChange}
indicatorColor="secondary"
>
<Tab label="Passenger" icon={Icons.seatIcon} component={Link} to="/passenger" />
<Tab label="Driver" icon={Icons.driverIcon} component={Link} to="/driver" />
<Tab label="Settings" icon={Icons.settingsIcon} component={Link} to="/settings" />
</Tabs>
</AppBar>
</div>
I have tried various CSS properties suggested in similar queries but haven't found a solution yet. Appreciate any assistance provided. Thanks!