Create your masks for Svelte easily
Svelte wrapper for @ionited/mask
Choose your favorite option below:
npm i @ionited/mask-svelte
https://unpkg.com/@ionited/mask-svelte@latest/dist/index.js
To basic usage you can simply call:
<template>
<input use:mask={{ mask: '99 / 9999' }}>
</template>
And import:
<script>
import { mask } from '@ionited/mask-svelte';
</script>
You can create your own mask logic easily, you only need register
a mask and use:
register(name: string, mask: any): void;
See more @ionited/mask
Copyright (c) 2023 Ion. Licensed under MIT License.