vanilla-autogrow

Automatically grow and shrink textareas to fit their content as you type.

Usage no npm install needed!

<script type="module">
  import vanillaAutogrow from 'https://cdn.skypack.dev/vanilla-autogrow';
</script>

README

vanilla-autogrow

NPM Downloads

How to use

A dead simple approach to autogrowing your textareas.

Works beautifully with Bootstrap 5 and even works with the floating labels.

No jQuery or framework needed.

import Autogrow from "./autogrow.js";
var inst = new Autogrow();

// or pass a selector
var inst = new Autogrow('textarea.autogrow');