auto-textarea-element
v0.0.2
Published
Literally just a textarea web-component that resizes itself
Downloads
3
Maintainers
Readme
<auto-textarea> element
A web-component textarea that only resizes itself
Installation
$ npm install --save auto-textarea-element
Usage
Script
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">
Markup
<auto-textarea id="id" class="class" name="name" maxlength="50">prefilled text</auto-textarea>
Browser support
Browsers without native custom element support require a polyfill.
- Chrome
- Firefox
- Safari
- Microsoft Edge
Development
npm install
npm test
License
Distributed under the MIT license. See LICENSE for details.