0.3.0 • Published 1 month ago

@ionited/mask-svelte v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

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

0.3.0

1 month ago

0.2.1

1 month ago

0.2.0

1 month ago

0.1.0

7 months ago