@conform-to/dom
This package is a transitive dependency for the rest of the conform packages with no intention to be used directly at the moment. Use at your own risk.
Conform is a form validation library built on top of the Constraint Validation API.
- Progressive Enhancement: It is designed based on the HTML specification. From validating the form to reporting error messages for each field, if you don't like part of the solution, just replace it with your own.
- Framework Agnostic: The DOM is the only dependency. Conform makes use of native Web APIs exclusively. You don't have to use React / Vue / Svelte to utilise this library.
- Flexible Setup: It can validates fields anywhere in the dom with the help of form attribute. Also enables CSS pseudo-classes like
:valid
and :invalid
, allowing flexible styling across your form without the need to manipulate the class names.
Checkout the repository if you want to know more!