I'm facing a challenge in Material-UI where I need to set different font sizes for TextField. While it may be simple in HTML/CSS, it's proving to be tricky in Material-UI. Can anyone help me figure out how to achieve this?
The code snippet below is what I've tried but unfortunately, it doesn't seem to work:
<TextField
name="keyword"
InputProps={{
style: styles.textField
}}
placeholder="Type here"
/>
const styles = {
textField: {
fontSize: 16,
'@media (min-width: 576px)': {
fontSize: 20
},
'@media (min-width: 768px)': {
fontSize: 22
}
}
};