JSFiddle - React, Tailwind, and code Playground

HTML

<input type="number" min="1" max="10"/>