Input that validates if it's content it's ok or invalid.
It's an Input component that validates for you it's content. There are four types of validation: CPF, CNPJ, EMAIL and REQUIRED. Each one of them do an specific thing, and all of them can be required. If there's an error it'll display an bellow above the Input with a message. More informations in the documentation file.
- Clone the repository
- Run
npm install
to install dependencies - Run
npm run dev
to run the project
Or
- Open the sandbox project and test, it needs no downloads.
If you want to use it in your application, you can clone the repository or download it as a zip file, then you grab the component folder and the utils files. Don't forget to fix the imports!
- ReactJS
- TypeScript
- Styled Components