JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://cdn.rawgit.com/MartinF/jQuery.Autosize.Input/master/jquery.autosize.input.js"></script>
<input type="text" value="" placeholder="Autosize" data-autosize-input='{ "space": 20 }' />

CSS

input {
    width: 90px;
    min-width: 90px;
    max-width: 300px;
    transition: width 0.25s;    
}