1.0.1 • Published 11 months ago

react-awesome-mask-input v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
11 months ago

Netlify Status

react-mask-input

An input component build to be used with custom masks

Docs

https://react-awesome-mask-input.netlify.app/

Installing

npm i react-awesome-mask-input

or

yarn add react-awesome-mask-input

Using

To use it, you will need to import the component and use it like:

import MaskInput from 'react-awesome-mask-input';
<MaskInput type="text" mask="(99) 9999-9999" />

Example

<MaskInput type="text" mask={['(99) 9999-9999', '(99) 9 9999-9999']} placeholder="Phone number" />