How to change material UI select border and label

前端 未结 3 872
情歌与酒
情歌与酒 2020-12-11 08:53

I am trying to change the border of a select component from Material-UI. So far I\'ve tried:

const styles = theme => ({
  root: {
    display         


        
3条回答
  •  醉梦人生
    2020-12-11 09:20

    You can override styling of child element classes e.g.

    selectBorder: {
      '& .MuiOutlinedInput-notchedOutline': {
        borderColor: 'red'
      }
    }
    

    If you apply className={classes.selectBorder} to your Select component, it will change the border color to red.

提交回复
热议问题