2
0
mirror of https://github.com/tenrok/maska.git synced 2026-05-15 11:59:38 +03:00
Files
maska/test/svelte/Options.svelte
T
Alexander Shabunevich 488a52f760 feat: simple mode for mask directive
Allow string passing to set a mask without data-maska attribute
2024-06-12 17:52:55 +03:00

14 lines
258 B
Svelte

<script lang="ts">
import { maska } from '../../src/svelte'
const options = {
mask: '#-#',
eager: false
}
</script>
<main>
<input type="checkbox" bind:checked={options.eager} /> Eager<br>
<input type="text" use:maska={options} />
</main>