title: Input field - Restrict to One digit
body: <p><a href="https://i.stack.imgur.com/JacE0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JacE0.png" alt="expected UI" /></a></p>
  <p>I want to re-create this above shown design using an Input field. However, the user should be able to enter only one numeric digit per box. How can I restrict the user to enter only 1 digit per input box.  Please suggest.</p>
  <p>Edit: this <a href="https://stackoverflow.com/a/64272833/4597">solution</a> solves most of the problem, but does not restrict the input to digits.</p>