You can achieve this by customizing the tab component for example:
const ChipTabs = withStyles({
root: {
alignItems: 'center',
minHeight: '0px'
}
})(Tabs);
const ChipTab = withStyles((theme) => ({
root: {
textTransform: 'none',
backgroundColor: '#e0e0e0',
borderRadius: '16px',
minWidth: 0,
minHeight: 0,
height: '24px',
fontSize: '0.8125rem',
whiteSpace: 'nowrap',
marginRight: '4px',
fontFamily: "Roboto"
}
}))((props) => <Tab disableRipple {...props} />);
then:
<ChipTabs
variant="scrollable"
scrollButtons="auto"
>
<ChipTab label="some text"/>
</ChipTabs>
see other examples here: https://mui-treasury.com/styles/tabs/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.