/
@maskito/vue
is a light-weighted library to use Maskito in as a Vue directive.
To get the most out of this guide, you should review the topic "Core Concepts" first.
Install libraries
and use Maskito
Pass a predicate to elementPredicate to find input element for you, if you do not have a direct access to it. For example, you use component from some UI Kit library.
host.querySelector('input,textarea')
so that might be sufficient. Use custom predicate if you need custom logic. Avoid inlining options object, otherwise Maskito will be recreated on every update: