1.0.1 • Published 8 years ago

grow-textarea v1.0.1

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

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