Skip to content

Input mask library for vue.js based on credit-card-input-mask

License

Notifications You must be signed in to change notification settings

Scrum/vue-restricted-input

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e3f27c1 · Nov 11, 2021

History

37 Commits
Nov 11, 2021
Jul 7, 2021
Jul 7, 2021
Jul 7, 2021
Jul 7, 2021
Jul 7, 2021
Jul 7, 2021
Jul 7, 2021
Jul 7, 2021
Jul 7, 2021
Jul 7, 2021
Jul 9, 2021
May 22, 2019
Jul 9, 2021
Jul 9, 2021
Jul 9, 2021
Jul 7, 2021

Repository files navigation

vue-restricted-input

Input mask for vue.js based on credit-card-input-mask

vue.jsnodenpm versionXO code styleCoveralls status

npm downloadsnpm

Why ?

credit-card-input-mask perfect work with carriage position, fast.

Install

$ npm install vue-restricted-input 

Note: This project is compatible with node v12+

Usage

main.ts

import { createApp } from 'vue';
import {VueRestrictedInputDirective} from 'vue-restricted-input';

import App from './App.vue';

const app = createApp(App);

app.directive('mask', VueRestrictedInputDirective);

App.vue

<template>
  <input type="text" v-mask="mask" :value="value">
</template>

<script setup>
  import {ref} from 'vue';

  const value = ref('11111111');
  const mask = ref('{{9999}} {{9999}}');
</script>

Related

About

Input mask library for vue.js based on credit-card-input-mask

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published