A autoresizable textarea component build using autosize
This isn't particularly useful, it's used as a demo for how to publish Vue components to NPM!
npm install --save vue-autoresize-textarea
or
yarn add vue-autoresize-textarea
Once installed, it can be used in a template as simply as:
import TextArea from 'vue-autoresize-textarea';
export default {
data: function () {
return {
text: "Hello World"
}
},
components: {
TextArea
}
}
<TextArea class="yourClassName" v-model="text"></TextArea>
MIT