Recently, I've integrated Material UI into my project and set up a TextField for a form field. However, I'm facing an issue where applying padding to the input field doesn't affect the label as well.
<TextField
sx={{ display: "flex", padding: "20px 0px" }}
name="mail"
label="Email"
type="mail"
id="mail"
placeholder="Enter email"
variant="standard"
inputProps={{
sx: { fontSize: "13px", marginTop: "4px" }
}}
InputLabelProps={{
shrink: true,
sx: {
fontSize: "12px"
}
}}
/>
Does anyone have any suggestions on how to add padding to both the input and the label simultaneously?