valour-form
v2.0.0
Published
A validation library for es-components
Downloads
3
Readme
ValourForm
The form validation component for use with Valour and ES-Components
Documentation and Demos
https://kstclaire.github.io/valour-form/
Available Valour Rules
valour.rule.isRule()
- isRequired
- isRequiredWhen
- isEmail
- contains
- equals
- equalsOther
- matches
- isDate
- isBefore
- isAfter
- isAlpha
- isAlphanumeric
- isNumeric
- isMobilePhone
- isURL
- isBoolean
- isCreditCard
- isCurrency
- isInt
- isDecimal
- isDivisibleBy
- isLength
- isLowercase
- isUppercase
More found in the Valour ValidationUnit code.
Project Structure
- src
| - components
| - form
| - ValourForm.js
| - ValourForm.md
| - inputs
| - textbox
| - ValourTextbox.js
| - ValourTextbox.md
Build commands
npm run start (run the styleguide on localhost:8080)
npm run build (build javascript)
npm run styleguide-build (build the docs)