Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove the border of the Material UI Select component?

I want to customize the Material UI Select component. Basically I just want to remove the border or rather the outline. I tried to override the styles, tried to use a NativeSelect and tried to use a customized InputBase with the Select as inputComponent but none of this worked. Any help would be much appreciated.

like image 485
Niklas Weber Avatar asked Dec 10 '25 07:12

Niklas Weber


2 Answers

I followed @Bar's answer: in my case I also had to reset the box-shadow applied over the Select.

For Material v5,

<Select sx={{ boxShadow: 'none', '.MuiOutlinedInput-notchedOutline': { border: 0 } }}>

screenshot of a MUI select without borders

like image 93
cmolina Avatar answered Dec 11 '25 21:12

cmolina


MUI exposes the disableUnderline prop in Select component. Just set it to true

like image 39
user5714726 Avatar answered Dec 11 '25 23:12

user5714726