The hax-input-mask will help with mask in your inputs Reactjs and Nextjs.
To use hax-input-mask in your project, run:
npm i hax-input-mask
# or "yarn add hax-input-mask"
Use within the setValue of input
import { cpfMask } from 'hax-input-mask';
<input type="text" value={cpf} onChange={event => serCpf(cpfMask(event.target.value))}/>
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.