Skip to content

sriramveeraghanta/vue-autoresize-textarea

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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