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

627 B

vue-input-autosize

Build Status

A simple Vue.js directive for autosizing a text input based on its content.

Install

$ npm install vue-input-autosize --save

Usage

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