Validation Plugins

The validation functionalities are optional and you can choose which kind of library to import to achieve it, based on your own style preferences or needs. You can even mix plugins to achieve more flexibility.

All package listed below are not included in the mobx-react-form package and must be installed and passed to the constructor for the Form Initialization using the plugins object.

Driver Description Package
VJF UMD Vanilla Javascript Functions npm i validator GitHub NPM
DVR UMD Declarative Validation Rules npm i validatorjs GitHub NPM
SVK UMD Schema Validation Keywords npm i ajv GitHub NPM
YUP UMD Object Schema Validator npm i yup GitHub NPM
JOI UMD Object Schema Validator npm i joi GitHub NPM
ZOD UMD TypeScript-first schema validation npm i zod GitHub NPM
INFO
  • The validator package when setting up VJF is optional.
  • To setup custom error messages, see the related plugin repo, each package has a different implementation.
SETUP

results matching ""

    No results matching ""