grow-textarea

1.0.1 • Public • Published

grow

Grow textareas without using a clone or ghost element.

Based off of: https://github.com/javierjulio/textarea-autosize.

Example

<textarea id="content"></textarea>
grow(content);
#content {
  box-sizing: border-box;
  max-height: 94px; /* optional */
  min-height: 31px;
}

Installation

$ component install matthewmueller/grow

API

grow(el)

Initializes a growing textarea

Run Example

make

License

MIT

Versions

Current Tags

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

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    1
  • 1.0.0
    0
  • 0.1.2
    0

Package Sidebar

Install

npm i grow-textarea

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • mattmueller