flexarea
flexarea copied to clipboard
Pretty flexible areas!
flexarea
Pretty flexible
<textarea>
s (works on any surface)
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
.
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