@comparaonline/ui-text-masks
TypeScript icon, indicating that this package has built-in type declarations

3.2.0 • Public • Published

@comparaonline/ui-text-masks

Package purpose

Installation


yarn add @comparaonline/ui-text-masks

Usage

You need import from ui-text-mask the withTextMask HOC and passing a valid mask. You can import a predefined mask from ui-text-mask or make your custom one. If you want use a custom mask, be careful to implement maskArray type from 'react-text-mask' to complete a valid mask.

Here is the list of predefined masks:

  • CNPJ
  • CEP
  • CPF
  • CellPhone
  • BirthDay
import React from 'react';
import { withTextMask, CNPJ } from '@comparaonline/ui-text-masks';

const CNPJInputMask = withTextMask(CNPJ);

export const RenderCNPJInputMask: React.SFC = () => <CNPJInputMask />

Readme

Keywords

none

Package Sidebar

Install

npm i @comparaonline/ui-text-masks

Weekly Downloads

0

Version

3.2.0

License

none

Unpacked Size

22.5 kB

Total Files

14

Last publish

Collaborators

  • gnavarro
  • dsuarez_compa
  • pfariaz
  • ricardo.sosa
  • suarezcumare
  • fverag
  • comparaonline-dev
  • comparaonlineprivate
  • matotias
  • javierlara1989
  • smurua
  • eseceve
  • pablocompara