JSFiddle - React, Tailwind, and code Playground by Alexander Branchugov November 02, 2018 HTML <input type="text" pattern="[0-9]" />