mirror of
https://github.com/tenrok/maska.git
synced 2026-05-15 11:59:38 +03:00
6550be3719b08e296ff7cfa662bb97e7970435b6
Safari doesn't fire input event on autofill of the fields like phone. But there is a custom event with e.bubbles = true and on our own custom event e.bubbles = false. So we can filter Safari autofill event for the correct mask processing.
Simple zero-dependency input mask.
Documentation & demo
Maska
Support ☕️
❤️ Please support Maska development!
Features ✨
- No dependencies and small size: ~3 Kb gziped
- Vanilla JS version + Vue 2/3, Alpine.js and Svelte integrations
- Works with native and custom inputs
- Custom tokens with modifiers, transform functions and hooks
- Number mask mode: easy money formatting
- Dynamic, reversed and eager masks
What’s new in v3 🎉
- Integrations with Alpine.js and Svelte
- Number mask mode
- Simplified directive format
- Other small improvements and fixes
Source of Inspiration 💡
License 📄
Description
Languages
TypeScript
91.3%
Vue
6.8%
Svelte
1.6%
JavaScript
0.2%