@react-input-validator/rules-file

2.0.0 • Public • Published

@react-input-validator

It's to validate the input component value in React app (web and native). The value is validated based on the rule(s) defined for the input. If the input is invalid, the error message is shown near the input. Moreover, you can change the inputs' appearance when they are invalid or also valid after the invocation of validation as depicted by the pictures below:

validation for different types of inputs
validation with status icon
file upload

It's very useful before submitted to the server.

How to install

For web app, install the following package:

npm i @react-input-validator/web

For React Native app, install the following package:

npm i @react-input-validator/native

How to use this package

Please see this docs. Additionally, you can take a look at the example directory in the source code.

Package Sidebar

Install

npm i @react-input-validator/rules-file

Weekly Downloads

0

Version

2.0.0

License

MIT

Unpacked Size

182 kB

Total Files

30

Last publish

Collaborators

  • atmulyana