UNPKG

@synergy-design-system/components

Version:

This package provides the base of the Synergy Design System as native web components. It uses [lit](https://www.lit.dev) and parts of [shoelace](https://shoelace.style/). Synergy officially supports the latest two versions of all major browsers (as define

18 lines (17 loc) 832 B
/** * --------------------------------------------------------------------- * 🔒 AUTOGENERATED BY VENDORISM * Removing this comment will prevent it from being managed by it. * --------------------------------------------------------------------- */ /** * Serializes a form and returns a plain object. If a form control with the same name appears more than once, the * property will be converted to an array. */ export declare function serialize(form: HTMLFormElement): Record<string, unknown>; /** * Returns all form controls that are associated with the specified form. Includes both native and Synergy form * controls. Use this function in lieu of the `HTMLFormElement.elements` property, which doesn't recognize Synergy * form controls. */ export declare function getFormControls(form: HTMLFormElement): Element[];