auto-textarea-element
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

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

Package Sidebar

Install

npm i auto-textarea-element

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

5.24 kB

Total Files

5

Last publish

Collaborators

  • foodforarabbit