What are your go-to libraries for input masking?

twitter logo github logo ・1 min read

My definition of input masking:

Formatting of user-input in an <input> element as it is provided, into a preset shape/structure

For example, here is a set of phone inputs that have masks setup:

Image of HTML input elements that have preset 'masks' to auto-format user input

This CSS-Tricks link showcases some examples as well as some libraries, but I'm interested in what the DEV community uses nowadays (that post is ~2 years old).

Bonus points if the library is framework agnostic, i.e. does not use jQuery, Angular, React, Vue, etc.

twitter logo DISCUSS
Classic DEV Post from Nov 8 '18

10 Software Engineering Proverbs/quotes I Wrote in the Past Months

In the past months, I was tweeting some insightful and enlightening software en...

Geoff Davis profile image
UI Developer @ St. Jude // All opinions, articles, and comments convey my views alone.