Masked input Vue component
yarn add vue-maskedinputCDN: UNPKG | jsDelivr (available as window.MaskedInput)
<template>
<masked-input pattern="11/1111" placeholder="11/1111"></masked-input>
</template>
<script>
import MaskedInput from 'vue-maskedinput'
export default {
components: {
MaskedInput
}
}
</script>The masking pattern to be applied to the <input>.
Customised format character definitions for use in the pattern.
Customised placeholder character used to fill in editable parts of the pattern.
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.
MIT © luyilin