flexarea icon indicating copy to clipboard operation
flexarea copied to clipboard

Pretty flexible areas!

flexarea

Pretty flexible <textarea>s (works on any surface)

See the demo!

Install

Using Bower

bower install -S flexarea

Using npm

npm install -S flexarea

Usage

Just call flexarea on a DOM element. It doesn't need to be a textarea.

var textarea = document.querySelector('textarea');
flexarea(textarea);

You'll get a nice little resizer. Remember to include the CSS in your styles! Colors get copied from the element passed to flexarea.

flexarea.png

If you want to set a maximum height for your element, you should use the max-height CSS property. It'll work just fine!

License

MIT