storm-textarea

2.0.1 • Public • Published

Storm Textarea

npm version

Auto resize textareas to fit value

Example

https://mjbp.github.io/storm-textarea

Usage

JS

npm install storm-textarea

either using es6 import

import Textarea from 'storm-textarea';

Textarea('textarea');

aynchronous browser loading (use the .standalone version in the /dist folder)

import Load from 'storm-load';

Load('/content/js/async/storm-textarea.standalone.js')
    .then(() => {
        StormTextarea('textarea');

Options

{
    events: [
        'input',
    ]
}

e.g.

Textarea.init('textarea', {
    events: [
        'input',
        'drop',
        'paste',
        'focus'
    ]
})

Tests

npm run test

Browser support

This is module has both es6 and es5 distributions. The es6 version should be used in a workflow that transpiles.

Dependencies

None

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.1
    1
    • latest

Version History

Package Sidebar

Install

npm i storm-textarea

Weekly Downloads

7

Version

2.0.1

License

MIT

Unpacked Size

10.8 kB

Total Files

10

Last publish

Collaborators

  • mjbp