Gallery
Examples
Four live demos showing the library against real-world form shapes. Each one is wired
with the actual FormValidator; the displayed snippet is the running code.
required · minLength · pattern · equalsTo
Sign up
Email, username, password with confirmation. The classic — every form-validation library has to do this one.
numeric · min · max · step
Booking
Native date and time inputs with bounds and step. The library parses each value in the input’s own format — no hand-rolled date math.
data-validation-context scoping
Multi-step wizard
Three steps, each its own validation context. The “Next” button manually triggers validation via createValidateEvent and only advances when the visible step is valid.
Promise-returning validate · onPendingChange · AbortSignal
Async username
A custom validator returns a Promise that fetches the public JSONPlaceholder /users endpoint. The engine awaits it on submit, cancels stale checks via AbortSignal, and reports pending state through onPendingChange. New in 1.1.0.