Looking to customize the text color and placeholder text color in my MUI TextField component to be green
https://i.sstatic.net/NZmsi.png
The documentation doesn't provide clear instructions, so I attempted a solution that didn't work:
<TextField
multiline
rows={3}
id="outlined-basic"
placeholder="My placeholder"
variant="outlined"
sx={{
"& .MuiInputBase-root MuiOutlinedInput-root": {
color: "green"
},
"& .MuiInputBase-root MuiOutlinedInput-root ::placeholder": {
color: "green"
}
}}
/>
Any suggestions on how to resolve this issue? Here is the code