How to override styles for material-ui TextField component without using the MUIThemeProvider?
问题 How would I hide / remove the underline in a TextField component without using the following code: const theme = createMuiTheme({ overrides: { MuiInput: { underline: { '&:hover:not($disabled):before': { backgroundColor: 'rgba(0, 188, 212, 0.7)', }, }, }, }, }); I would like to do it with props and according to the docs: https://material-ui.com/api/input/ I should be able to change the underline prop, but it does not work. 回答1: This is how you do it: <TextField id="name" label="Name" value=