2
0
mirror of https://github.com/tenrok/vue-tribute.git synced 2026-06-11 19:02:26 +03:00
Files
vue-tribute/README.md
T
2016-07-24 20:36:44 -04:00

29 lines
627 B
Markdown

# vue-input-autosize
[![Build Status](https://travis-ci.org/syropian/vue-input-autosize.svg?branch=master)](https://travis-ci.org/syropian/vue-input-autosize)
> A simple Vue.js directive for autosizing a text input based on its content.
## Install
```js
$ npm install vue-input-autosize --save
```
## Usage
```js
import Vue from "vue";
import VueInputAutosize from "vue-input-autosize";
Vue.use(VueInputAutosize, { maxWidth: 500, minWidth: 20, comfortZone: 0 });
```
...and inside your template:
`<input type='text' :value='msg' v-input-autosize />`
## License
MIT © [Collin Henderson](https://github.com/syropian)