1.0.2 • Published 3 years ago

hax-input-mask v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

hax-input-mask

The hax-input-mask will help with mask in your inputs Reactjs and Nextjs.

Getting Started

Installation

To use hax-input-mask in your project, run:

npm i hax-input-mask
# or "yarn add hax-input-mask"

Usage

Use within the setValue of input

import { cpfMask } from 'hax-input-mask';

<input type="text" value={cpf} onChange={event => serCpf(cpfMask(event.target.value))}/>

Options parameters

cpfMask ufMask cepMask dataMask telefoneMask dataMask horaMask converte_data_hora converte_data converte_hora converte_data_envio soNumeroMask convert_real

Help us maintain the project: donate.