React Maskedinput screenshot

React Maskedinput

Author Avatar Theme by Insin
Updated: 18 May 2020
729 Stars

Masked <input/> React component

Overview:

MaskedInput is a React component designed for input masking, utilizing inputmask-core as its foundation. While the author did not use this project beyond its creation, it serves as a powerful tool for implementing masked input fields. The component offers customization options and callbacks for effective integration.

Features:

  • Mask Prop: Specify the masking pattern for the input element.
  • onChange Callback: Receive a callback function for any changes in the masked input value.
  • Custom Format Characters: Define custom format characters for use within the masking pattern.
  • Placeholder Character: Set a personalized placeholder character within the masked input.
  • Default Value and Placeholder: Set default values and placeholders for the mask.
  • Size Prop: Adjust the size of the rendered input field.
  • MIT License: Licensed under the MIT license for flexible usage.

Installation:

To install MaskedInput, you can utilize npm by running the following command:

npm install react-maskedinput

For browser bundle usage, include the necessary script in your HTML:

<script src="path/to/react-maskedinput.min.js"></script>

Summary:

MaskedInput is a React component tailored for input masking, offering a range of features including customizable masks, callbacks, and format characters. By providing flexibility and ease of use, developers can efficiently implement masked input functionality into their projects while benefiting from the MIT license for unrestricted utilization.