mirror of
https://github.com/tenrok/vue-tribute.git
synced 2026-06-11 19:02:26 +03:00
29 lines
627 B
Markdown
29 lines
627 B
Markdown
# vue-input-autosize
|
|
|
|
[](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)
|