[英]How to remove border from MUI text field
I have used Input field from Material UI.我使用了 Material UI 中的 Input 字段。 I want to remove the border from it.我想从中删除边框。 I have tried using border="none"
but it didn't remove.我尝试过使用border="none"
,但没有删除。
<TextField
variant="standard"
InputProps={{
disableUnderline: "true"
}}
/>
This will solve the issue.这将解决问题。 However, the built-in padding changes once you do this;但是,一旦执行此操作,内置填充就会发生变化; use some css to set it according to your UI.使用一些 css 根据您的 UI 进行设置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.