There are few options on how to include/import IMask into your project:
Install the imark library from command prompt from the root directory of the project:
yarn add imask --save
How to import IMask package?
import IMask from 'imask';
To apply alpine mask add the below code in the init.js file.
let phoneInput: HTMLInputElement; onMount(() => { // Phone number mask IMask(phoneInput, { mask: '+{91} 00000 00000' }); }); <input class="form-input" id="phone" bind:value={phoneNumber} type="text" placeholder="Enter your phone number" bind:this={phoneInput}/>
Be the first to know about new updates and exclusive discounts. No spam, just great offers!
How about
With over 7 years of experienced team, we specialize in delivering custom projects for startups, blue-chip companies, and government agencies. We have successfully completed over 250+ projects, providing tailored solutions that meet the unique needs of each client.
Hire Us© Domiex Created & Crafted by SRBThemes.