title: Form validation using regex is not working TextField MUI React
body: <p>I am trying to add a regex pattern in <code>inputProps</code> for validation of Textfield and <code>required</code> but both not working, on click of next the empty or wrong input is also getting entered.</p>
  <pre><code>  &lt;TextField
              id=&quot;outlined-basic&quot;
              name=&quot;s_firstName&quot;
              label=&quot;First Name&quot;
              variant=&quot;outlined&quot;
              defaultValue={user.s_firstName}
              onChange={handleChange} 
             
              inputProps={{pattern: &quot;[a-z]&quot;}
              required /&gt;
  </code></pre>
  <p>Please can you help what wrong is there validation not working?</p>