如何为helperText 材质 UI分配颜色以突出显示 中的错误TextField。我无法helperText在材质 UI 中设置颜色。
我尝试使用MuiFormHelperText-root-406应用 CSS 但它不起作用
<Grid item xs={3}>
<TextField
label="EmailId"
name="emailId"
value={editItem.emailId}
onChange={this.editInputValue}
helperText={this.state.emailerror} />
</Grid>
.MuiFormHelperText-root-406{
color:rgba(255,0,0,0.5);
}
Run Code Online (Sandbox Code Playgroud)