JSFiddle - React, Tailwind, and code Playground

by Sergey Linnick

HTML

<form action="">
  

  <input type="tel" pattern= “^[0–9]$” maxlength="4" min="0" max="10" />
<input type="number" name="quantity" min="0" max="10">

</form>