如何更改材质ui TextField的标签高程



我想提升文本字段的标签,但我做不到,这是我的代码。

textStyle: {
backgroundColor: '#1c1a1a',
border: 0,
borderRadius: 0,
width: 400,
height: 66,
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
marginBottom: 10,
padding: '0 10px',
'& .MuiFormLabel-root': {
color: 'grey',
padding: '1px',
height:'10px',
},
},

高度没有任何作用,我如何才能提升标签?

将此字段添加到textStyle:

marginTop: -10

最新更新