mirror of
https://github.com/tenrok/maska.git
synced 2026-05-15 11:59:38 +03:00
488a52f760
Allow string passing to set a mask without data-maska attribute
14 lines
258 B
Svelte
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>
|