0.0.2 • Published 4 years ago

auto-textarea-element v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

<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.