Skip to content

ZEISS/htmx-validate

Repository files navigation

HTMX Validate Element

Node CI Taylor Swift Volkswagen GitHub License

This is a simple example of how to use HTMX to validate a form element.

Getting Started

htmx-validate is a simple example of how to use HTMX to validate a form element.

<div htmx-error-for="email-input" is="htmx-validate"></div>

The element listens for the following events.

  • htmx-validate:error - Triggered when the input is invalid.
  • htmx-validate:success - Triggered when the input is valid.

License

MIT

About

A simple component to add validation errors

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published