vuejs-mask
v1.0.3
Published
Dynamic mask (directive) for VueJS text inputs
Downloads
399
Maintainers
Readme
Features
Just install and use. Doesn't require additional configurations.
Works with input (html), v-text-field (Vuetify) and q-input (QuasarJS)
Extremely lightweight
Installation
npm install vuejs-mask --save
import Vue from 'vue'
import mask from 'vuejs-mask'
Vue.use(mask)
Usage
<input v-model="model" v-mask="['(##) ####-####', '(##) #####-####']" />
-ou-
<v-text-field v-model="model" v-mask="['(##) ####-####', '(##) #####-####']" />