Add custom styles to the “material-ui” component may be a challenge sometimes.
For example, I need to add additional custom styles to the “TextField” component.
I tried different solutions and spent a lot of time to find the most simple one.
In the end, I found that it is a possible just pass “FormHelperTextProps” property with “className” key.
<TextField | |
FormHelperTextProps={{ | |
className: classes.helperText | |
}} | |
/> |
Hope, this solution saves you time!
Top comments (0)