Incorporating React with MUI's library has been a seamless experience for me. One of the key MUI components I have integrated is the
Chip
Within this particular Chip
, there lies the label attribute, offering the option to showcase a text field within the chip as illustrated below.
https://i.sstatic.net/06gOh.png
I've made numerous attempts to modify the style of the "Avatar" text contained in the Chip
using common MUI global styles like:
label: {
'& .MuiChip-label': {
fontWeight: 'bold',
color: 'orange'
}
},
<Chip
avatar={<Avatar style={{
width: '32px', height: '32px', padding: '5px', border: '1px solid',
backgroundColor: 'black'
}}
className={classes.label}
src="/avatar/photo/pic.png" />}
label="Avatar"
variant="outlined" />
However, my efforts seem to fall short. Is there an alternate method to achieve this customization?