Maska demo

Vue.js examples

v-maska="['+1 (###) ##-##-##', '+1 (###) ###-##-##']"

v-maska="dateMask" — reactive mask by `dateMask` computed property

v-maska="{ mask: '!#HHHHHH', tokens: { 'H': { pattern: /[0-9a-fA-F]/, uppercase: true }}}"

Vanilla JS examples

data-mask="+1 (###) ###-####"

data-mask="A* A*"

data-mask="#*"

data-mask='["# cm", "#.# cm", "#.## cm"]'

data-mask="##/##/####"

data-mask="!#HHHHHH"

data-mask="###"

data-mask='["###.###.###-##", "##.###.###/####-##"]'