小编Pra*_*kar的帖子

如何为helperText材质ui分配颜色以突出显示TextField中的错误

如何为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)

css reactjs material-ui

6
推荐指数
1
解决办法
6323
查看次数

标签 统计

css ×1

material-ui ×1

reactjs ×1