Mask-svelte

Create your masks for Svelte easily

Svelte wrapper for @ionited/mask

Quick start

Choose your favorite option below:

Install with NPM

npm i @ionited/mask-svelte

Get from UNPKG

https://unpkg.com/@ionited/mask-svelte@latest/dist/index.js


Usage

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>

Register your own masks

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

License

Copyright (c) 2023 Ion. Licensed under MIT License.

https://ionited.io

Top categories

svelte logo

Need a Svelte website built?

Hire a professional Svelte developer today.
Loading Svelte Themes