react-input-mask
Input masking component for React. Made with attention to UX.
This is a development branch for version 3.0. For the latest stable version see v2 branch.
Demo
Table of Contents
Installation
npm install react-input-mask@next --save
react-input-mask requires React 16.8.0 or later. If you need support for older versions, use version 2.
Usage
import React from "react"
import InputMask from "react-input-mask";
function DateInput(props) {
return <InputMask mask="99/99/9999" onChange={props.onChange} value={props.value} />;
}