@frankhu00/react-form-validation
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

Validation for inputs and forms

WIP

Main Exports

ValidationInput

Higher order component that calls useValidation hook to the input component

useValidation

Main validation logic

Validation Rules

RequiredRule

Input must be have a value

PatternRule

Input must match regex pattern

LengthRangeRule

Input length must be within the specified range

UniqueValueRule

Input must be unique within an array of existing values

CustomRule

Must provide a validator function

Readme

Keywords

Package Sidebar

Install

npm i @frankhu00/react-form-validation

Weekly Downloads

0

Version

1.2.1

License

ISC

Unpacked Size

96.9 kB

Total Files

23

Last publish

Collaborators

  • frankhu00