Literally just a textarea web-component that resizes itself
MIT License
A web-component textarea that only resizes itself
$ npm install --save auto-textarea-element
Import as ES modules:
import 'auto-textarea-element'
Include with a script tag:
<script type="module" src="./node_modules/auto-textarea-element/dist/index.js">
<auto-textarea id="id" class="class" name="name" maxlength="50">prefilled text</auto-textarea>
Browsers without native custom element support require a polyfill.
npm install
npm test
Distributed under the MIT license. See LICENSE for details.