1.0.3 • Published 7 years ago

@pemrouz/validate v1.0.3

Weekly downloads
9
License
pemrouz.mit-licen...
Repository
github
Last release
7 years ago

validate

image

Validates a component. Sets is-invalid when invoked, is-interacted on blur and an error message.

Usage

API

validation = { pattern, message }

  • pattern is either a regex or function that will be invoked on the value of the component.
  • message is the error messge that will be displayed if the element is invalid, interacted and focused.
1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.4

8 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago