Feat: Mask Input Machine #1629
juliomuhlbauer
started this conversation in
Ideas
Replies: 1 comment
-
Example: https://primereact.org/inputmask/ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
A mask input machine alongside number input.
Eg: phone, documents, zip code
Given a mask: (eg: mask="99-999999"), it would format accordingly.
There are not some agnostic good libs out here ( I have already tried some).
I wasusing the number input machine provided by zag with some workarounds. The number input machine had the ability to provide a function to format and parse the number. It worked with some regex. But now I have to use the methods provided by the Inlt.NumberFormat. I wanted to give a custom mask.
Beta Was this translation helpful? Give feedback.
All reactions