【发布时间】:2019-12-27 12:53:06
【问题描述】:
我想使用材质 UI 更改 TextInput 的变体。默认变体是标准变体,我想将其更改为概述,但无法这样做。关注material-ui的文档Material-ui documentation
下面是我的代码sn-p
<TabbedForm>
<FormTab label="INFO">
{/* <TextInput disabled label="" source="id" type="hidden"/> */}
<TextInput label="Name" source="name" variant="outlined"/>
<TextInput source="shortdesc" />
</FormTab>
</TabbedForm>
【问题讨论】:
-
应该是
<TextField/>Material UI中没有TextInput这样的组件
标签: reactjs material-ui react-admin