JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://rawgit.com/MartinF/jQuery.Autosize.Input/master/jquery.autosize.input.min.js"></script>
<!--Type "23232323" in the input on Firefox and watch the text jiggle:-->
<input id="myinput" value="" />
CSS
#myinput {
background: transparent;
border: 1px solid black;
outline: none;
font-size: 12px;
font-family: "Liberation Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
width: 1em;
}
JavaScript
$("#myinput")
.autosizeInput({ space: 1 })
;