Description
Text Mask is an input mask library that formats what a user types into a field, for patterns such as phone numbers, dates, currency, zip codes, percentages and email addresses. It has wrappers for React, Angular 2, Ember and Vue, and a vanilla JavaScript version. The README says the library is not maintained, so pull requests and issues are no longer monitored, and it lists alternatives that the maintainers have not verified: imaskjs, ngx-mask, Maskito and react-text-mask-modern. Text Mask was built to be flexible, with a minimal API for creating any type of mask, and extendable with addons for more mask types. It supports pasting and browser auto-fill, works on mobile, and has no third-party dependencies. The project's README says it is under 4KB gzipped. The project lists Internet Explorer 9 and later, as well as modern mobile and desktop browsers, among the environments it was expected to work in. A live demo page shows the masks in action, and the documentation covers installation for each framework. Because the library is no longer maintained, new projects should look at the listed alternatives before adopting it.…
Highlights
- Input masks for phone, date, currency and more
- Wrappers for React, Angular, Ember and Vue
- Supports paste and browser auto-fill
- No third-party dependencies
- Under 4KB gzipped
- Not maintained: alternatives listed
Ratings & Reviews
No ratings yet
Be the first to rate react-text-mask.
People also visit
react-text-mask FAQ
What does Text Mask do?
It creates input masks that format what users type into fields, such as phone numbers, dates, currency and zip codes.
Is it still maintained?
No. The README says the library is not maintained, and pull requests and issues are not monitored.
What are the alternatives?
The README lists imaskjs, ngx-mask, Maskito and react-text-mask-modern, and notes that the maintainers have not verified them.
Which frameworks does it support?
React, Angular 2 or Angular 1, Ember, Vue and vanilla JavaScript.
Does it have dependencies?
No. The README says it has no third-party dependencies and is under 4KB gzipped.
Can I extend it?
Yes. You can add addons for more mask types, and the documentation covers the configuration options.
What are the best react-text-mask alternatives?
Popular alternatives to react-text-mask include maskito, @react-input/mask and react-input-mask. See all react-text-mask alternatives




















