0
votes

How to set the border color for select component in material ui library, Under the inspect elements, if i set the property then it works, but how to do this using class override.

enter image description here

2

2 Answers

0
votes

There are multiple ways to re-style material-ui components, here is my preferred method:

import {styled, Select} from "@material-ui/core"

const StyledSelect = styled(Select)({
  borderColor: "..."
})
0
votes

You can simply use border: '2px solid red' inside style prop like style={{border: '2px solid red'}}