Skip to content

ionited/mask-svelte

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Sponsor this project

 

Packages

No packages published