v-inputmask

Input mask directive for Vue 2.* based on jquery.inputmask
9,512 9
Install
npm install v-inputmask
Latest Version:1.1.0
License:MIT
Last Updated:Oct 15, 2017
Links: GitHub  ·  npm
Maintainer: avmityakov

Vue 2.* Input mask directive

It's wrapper for jquery.inputmask library. Allow to use directive on components (not only on INPUT tag elements)

Example

Install:

npm install v-inputmask --save

Exmaple for Elements UI:

import VInputmask from 'v-inputmask';

Vue.use(VInputmask);
<el-form-item label="Date">
    <el-input v-inputmask="'99.99.9999'"></el-input>
</el-form-item>

For components by default it search for first input element. If there are multiple elements it is possible to specify it by css selector:

<my-component v-inputmask="'999-999'" data-inputmask-target="#code"></my-component>

Related Packages

@titou10/v-mask

mask directive for vue.js that exposes the unmasked value

5,749 22
maska

Simple zero-dependency input mask for Vanilla JS, Vue, Alpine.js and Svelte

14,224,471 2,021
@ssibrahimbas/v-mask

mask directive for vue3

83,819 1
v-slim-mask

A input mask directtive compatible with Vue 3 (~1.5kb)

7,789 6
vue-r-mask

Masked input directive for vue.js 2

7,495

Version History

Version Released License
1.1.0 MIT
1.0.0 MIT