JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://www.fakeyourbeauty.com/jquery.autosize.input.debug.js"></script>
<div style='width:300px'>
<input type="text" value="" placeholder="Autosize" data-autosize-input='{ "space": 40 }' />
</div>
CSS
input {
width: 100px;
min-width: 100px;
transition: width 0.25s;
}
JavaScript
$(function() {
// DOM ready
// To change defaults and be used it has to happen before the instance is initialized
// Remove the data attribute to test this
//Plugins.AutosizeInput.getDefaultOptions().space = 60;
// Initialize
//$("input").autosizeInput();
});