Vue Auto Resize Directive
A simple directive to make your textareas height automatically grow as the user types some text.
Try it out live on https://pninim.yiddishe-kop.com.
Install via NPM:
npm i vue-auto-resize
To have the directive available inyour whole project, import it in your main entypoint:
Then you can use the directive on any textarea like so:
If you only want to make available in one component, you can import it locally:
The whole thing is only 348 bytes before minification! 😎💡