Skip to content

egoist-bot/vue-maskedinput

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue-maskedinput

Masked input Vue component

Demo

Install

yarn add vue-maskedinput

CDN: UNPKG | jsDelivr (available as window.MaskedInput)

Usage

<template>
  <masked-input pattern="11/1111" placeholder="11/1111"></masked-input>
</template>

<script>
import MaskedInput from 'vue-maskedinput'

export default {
  components: {
    MaskedInput
  }
}
</script>

Props

mask : string

The masking pattern to be applied to the <input>.

formatCharacters: Object

Customised format character definitions for use in the pattern.

placeholderChar: string

Customised placeholder character used to fill in editable parts of the pattern.

placeholder : string

A default placeholder will be generated from the mask's pattern, but you can pass a placeholder prop to provide your own.

See the inputmask-core docs for details.

License

MIT © luyilin

About

Masked <input/> Vue component

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 71.4%
  • Vue 28.6%