Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is it possible to style delete button on a material-ui's Chip component?

No problem with styling chip label or background color, or chip itself. But seems like that delete round button inside chip is a svg icon. Is there any way I can change color of it?

like image 549
mcmxc Avatar asked Dec 07 '25 18:12

mcmxc


1 Answers

Yes, you can do this by overriding the default theme colors for Chip:

import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import getMuiTheme from 'material-ui/styles/getMuiTheme';    

<MuiThemeProvider muiTheme={getMuiTheme({ chip: { deleteIconColor: 'red' } })}>
// ...
like image 119
Jeff McCloud Avatar answered Dec 09 '25 14:12

Jeff McCloud



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!