@w0s/textarea-auto-size
v3.0.0
Published
Automatically adjust the block size dimension of the `<textarea>` element to the input content
Downloads
23
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';
for (const targetElement of document.querySelectorAll('.js-textarea-auto-size')) {
new TextareaAutoSize(targetElement);
}
</script>
<textarea class="js-textarea-auto-size"></textarea>