svelte-textarea-auto-height
v1.1.0
Published
svelte action to set the height of textareas based on their value
Downloads
10
Readme
svelte-textarea-auto-height
A svelte action that automatically resizes input fields based on their value.
Install
$ npm install svelte-textarea-auto-height
Usage
<script>
import { autoHeight } from 'svelte-textarea-auto-height';
</script>
<textarea
use:autoHeight
cols="30"
placeholder="Type and watch me resize!"
></textarea>