rifm icon indicating copy to clipboard operation
rifm copied to clipboard

React Input Format & Mask, tiny (≈800b) component to transform any input component into formatted or masked input. Supports number, date, phone, currency, credit card, etc

Results 35 rifm issues
Sort by recently updated
recently updated
newest added

Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.7. Commits c74c8af 1.3.7 024b8b5 update deps, add linting 032fbaf Use Object.create(null) to avoid default object property hazards 2da9039 1.3.6 cfea636 better git push script,...

dependencies

Hey nice work here, any plans to support React Native?

Would be good to know who and how uses this project. GIFs are appreciated

I've tried to create date text field with validation of max numbers of dates for leap years and months. First of all I allow input maximum 31 day (or input...

We want to allow user to type any digit, dot or comma symbols and replace comma with dot on the fly. ``` const numberAccept = /[\d.,]+/g; const parseNumber = string...

I am not able to add a decimal number formatted as the Indian currency. https://codesandbox.io/s/rifm-indian-currency-ysj4h Is there a better way to do this?

The mask is `__-__`. With `mask={true} replace={...}`: ``` 12-|34 DELETE 12-|4 INSERT 0 12-0| ``` Expected: ``` 12-|34 DELETE 12-|4 INSERT 0 12-0|4 ``` This can be achieved with `mask={false}`....

Currently in "Date format with mask" example ( \_\_-__-____ ) if for instance it has a value "11-22-333" if I put a caret here: 11-|22-3333 and type "44" it will...

This library is awesome and all, done pretty much most of the heavy lifting I wasted work hours on. But it has a small problem ## Problem statement When reformatting...

Love the simple focus and straightforwardness of this library! Thoughts on adding a credit card format example in [format.js](https://github.com/istarkov/rifm/blob/master/docs/format.js)? Found some code from `cleave.js` for formatting for credit cards as...