Is there a way to customize the text color inside the Tab
component while still allowing it to change color when selected as an active Tab?
For example:
<Tabs centered onChange={handleChange} value={value} textColor={'secondary'} indicatorColor={'secondary'}>
<Tab label={'Hello There'} style={{color: '#fff'}}/>
<Tab label={'Hello There'} style={{color: '#fff'}}/>
<Tab label={'Hello There'} style={{color: '#fff'}}/>
</Tabs>
The code above changes the text color but does not override the color when the Tab
is active.
In addition, I am using styled-components
for convenience.