@w0s/textarea-auto-size
v4.0.3
Published
Automatically adjust the block size dimension of the `<textarea>` element to the input content
Downloads
145
Readme
Automatically adjust the block size dimension of the <textarea> element to the input content
Demo
Examples
<script type="importmap">
{
"imports": {
"@w0s/textarea-auto-size": "...",
"@w0s/writing-mode": "..."
}
}
</script>
<script type="module">
import textareaAutoSize from '@w0s/textarea-auto-size';
textareaAutoSize(document.querySelectorAll('.js-textarea-auto-size')); // `getElementById()` or `getElementsByClassName()` or `getElementsByTagName()` or `querySelector()` or `querySelectorAll()`
</script>
<textarea class="js-textarea-auto-size"></textarea>