JSFiddle - React, Tailwind, and code Playground

by Eric L

HTML

<input id="numbersOnly" pattern="[0-9.]+" type="text">