Skip to content

allyfx/input-validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🦊 Input Validator

Input that validates if it's content it's ok or invalid.

💡 What is it?

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.

🖥 Try it

  • Clone the repository
  • Run npm install to install dependencies
  • Run npm run dev to run the project

Or

❓ How do I add to my project?

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!

🚧 Built With

  • ReactJS
  • TypeScript
  • Styled Components