Is there a way to prevent TextField
width from shrinking when adding InputAdornment
?
My current code:
<TextField
label="Username"
{...formik.getFieldProps("username")}
InputProps={{
endAdornment: (
<InputAdornment position="start">
<Tooltip title="demo">
<ErrorIcon sx={{ color: "orange" }} />
</Tooltip>
</InputAdornment>
),
}}
/>