I need two textbox from TextField from MaterialUI one that can only enter alphabets(small or capital can also include spaces {Example : Risha Raj} as first textfield) and other one is also except only alphabets (small or capital) but with maxLength with only 3
so I did the following
<TextField
id='Product Name'
label='Enter Student Name'
name='sname'
value={values.sname}
onChange={handleChange}
error={errors.sname}
/>
<TextField
id='section'
label='Enter Class Section'
name='ccode'
inputProps={{maxLength:3}}
value={values.ccode}
onChange={handleChange}
error={errors.ccode}
/>
I am able to restrict the length but unable to do the alphabets