Skip to content
M

@mona-health/react-input-mask

(yet another) Masked input component for React

by ianchanningFree

#296in UI Libraries
0In stores

Description

@mona-health/react-input-mask is a masked input component for React. It is a fork of the react-input-mask project and is made with attention…

Highlights

  • Masked input for React with string or array masks
  • Placeholder and always-show options
  • beforeMaskedStateChange hook for custom value handling
  • Custom render child for other input components
  • Requires React 16.8 or later for v3

Ratings & Reviews

No ratings yet

Be the first to rate @mona-health/react-input-mask.

People also visit

R

react-input-mask

Input masking component for React. Made with attention to UX

UI Libraries
Launch
R

@react-input/mask

React input component for masked input

UI Libraries
Launch
R

react-maskedinput

Masked <input/> React component

UI Libraries
Launch
S

@salutejs/react-maskinput

React mask input component

UI Libraries
Launch
R

react-text-mask

React input component that accepts mask pattern

UI Libraries
Launch
M

maskito

Collection of libraries to create an input mask which ensures

UI Libraries
Launch

@mona-health/react-input-mask FAQ

What does it do?

It is a masked input component for React. It formats what a user types so the value fits a pattern you define.

How do I define a mask?

Use a string where 9 is a digit, a is a letter and * is a digit or letter. For more complex masks, use an array of regular expressions and constant characters.

What React version do I need?

v3 needs React 16.8.0 or later. The README says to use version 2 for older React versions.

Can I use it with my own input component?

Yes. Pass a child element as a custom render function, which the README says allows integration with other input components.

What placeholder does it show?

An underscore by default, set with maskPlaceholder. Set it to null or an empty string to leave the unfilled parts empty.

What are the best @mona-health/react-input-mask alternatives?

Popular alternatives to @mona-health/react-input-mask include react-input-mask, @react-input/mask and react-maskedinput. See all @mona-health/react-input-mask alternatives

Developer Stuff

Badges