Need help with text-mask?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

text-mask
7.9K Stars 765 Forks The Unlicense 490 Commits 290 Opened issues

Description

Input mask for React, Angular, Ember, Vue, & plain JavaScript

Services available

!
?

Need anything else?

Contributors list

Text Mask

⚠️ This library is not maintained. Pull-requests and issues are not monitored. Alternatives to

text-mask
include:
  • https://github.com/uNmAnNeR/imaskjs

If you know other alternatives that should be listed here, email me at [email protected]


Build Status

Text Mask is an input mask library. It can create input masks for phone, date, currency, zip code, percentage, email, and literally anything!

There are convenient wrappers for React, Angular 2, Ember, and Vue.

Live demo

See it in action, check out the demo page.

Installation and usage

Expected to work with...

IE9+, Android, Samsung Internet, Windows Phone, iOS, Opera, Firefox, Safari, and Chrome

Flexible

Text Mask is very configurable and allows you to create any type of input mask with minimal APIs. See the documentation for details.

Extendable

You can easily expand the base functionality of Text Mask with addons for more mask types. Checkout existing addons.

Robust

Text Mask supports pasting, browser auto-fill, and all operations that a user would expect while interacting with an input field.

It works on mobile, has no 3rd party dependencies, and has a tiny footprint (less than 4KB gzipped).

For any questions, suggestions, or feature requests

Please file an issue!

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.