const styles = {
root:{
},
chip:{
margin: "2px",
padding: "2px"
}
}
const SmartTagChip = (props) =>{
const classes = useStyles();
return(
<Chip style={{color:"white"}} clickable className={classes.chip}
color="default"
label={item.label} variant="outlined"/>:
)
}
<Chip style={{color:"white"}} clickable className={classes.chip}
root .MuiChip-root Styles applied to the root element.
const StyledChip = withStyles({
root: {
backgroundColor: 'red'// here you can do anything actually
},
label: {
textTransform: 'capitalize',
},
})(Chip);
const SmartTagChip = (props) =>{
const classes = useStyles();
return(
<StyledChip clickable
color="default"
label={item.label} variant="outlined"/>:
)
}
export const useStyles = makeStyles(() => ({
myClassName: {
borderRadius: '9px', //some style
'& .MuiChip-label': { fontSize: 18 }, // sub-selector
},
}));