UNPKG

form-associated-helpers

Version:

A collection of reusable mixins + helpers for working with form associated custom elements.

9 lines (8 loc) 479 B
/** * This validator is for if you have an exact copy of your element in the shadow DOM. Rather than needing * custom translations and error messages, you can simply rely on the element "formControl" in your shadow dom. * @type {() => import("../types.js").Validator<HTMLElement & { formControl?: HTMLElement & ElementInternals }>} */ export const MirrorValidator: () => import("../types.js").Validator<HTMLElement & { formControl?: HTMLElement & ElementInternals; }>;