JSFiddle - React, Tailwind, and code Playground HTML <form> <input pattern=".{5,10}"> <input type="submit" value="Check"></input> </form>