Skip to content

Latest commit

 

History

History
38 lines (31 loc) · 635 Bytes

README.md

File metadata and controls

38 lines (31 loc) · 635 Bytes

vue-autoresize-textarea

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!

Installation

npm install --save vue-autoresize-textarea

or

yarn add vue-autoresize-textarea

Usage

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>

LICENSE

MIT