JSFiddle - React, Tailwind, and code Playground

by bakhshi

HTML

<input type="text" pattern="[0-9]" required>