A Utility web component to send form data to a callback function instead of HTTP endpoint # spa-form spa-form is a utility component that progressively enhances html forms from a Multi-Page App to a Single-Page App ![Example gif](./example.gif) **Left Side:** The *base behavior* where the HTML form uses its native behavior of sending the data to an endpoint and getting a response. The animation is showing a new page being loaded. **Right Side:** The *enhanced behavior* where the HTML form instead passes the form data to a defined callback function as an object of key value pairs. The animation is showing the form data being passed to a developer defined callback function that activates the modal. ## Installation ``` npm install spa-form ``` ## Usage ### Overview Use as a normal form element and add the attribute `is="spa-form"` ```html