yes. pass the icon in props
object in theme as you've done above.
const theme = createMuiTheme({
props:{
MuiCheckbox:{
icon: <FavoriteBorder />,
checkedIcon:<Favorite />
}
}
});
Now wherever you use the checkbox in the scope of this theme, you'll get this icon by default.
Working demo:
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…