@shaack/auto-resize-textarea

1.1.6 • Public • Published

auto-resize-textarea

Auto resizes the height of any <textarea> to match the text input.

  • No dependencies
  • Works with Bootstrap

Try it

Demo page

Repository

GitHub

Usage

<textarea class="auto-resize"></textarea>

<script src="src/auto-resize-textarea.js"></script>
<script>
    autoResizeTextarea(document.querySelectorAll("textarea.auto-resize"), {maxHeight: 320})
</script>

Installation

npm -i @shaack/auto-resize-textarea

Package Sidebar

Install

npm i @shaack/auto-resize-textarea

Weekly Downloads

3

Version

1.1.6

License

MIT

Unpacked Size

9.24 kB

Total Files

6

Last publish

Collaborators

  • shaack