--- title: Migrate to the Polaris form component description: >- Learn how to migrate the Form component to Polaris web components in checkout and customer account UI extensions. source_url: html: 'https://shopify.dev/docs/apps/build/checkout/migrate-to-web-components/form' md: >- https://shopify.dev/docs/apps/build/checkout/migrate-to-web-components/form.md --- # Migrate to the Polaris form component The Polaris form component groups form controls and enables implicit submission when the user presses Enter. It replaces the previous [`Form`](https://shopify.dev/docs/api/checkout-ui-extensions/2025-07/components/forms/form) component and is available as [``](https://shopify.dev/docs/api/checkout-ui-extensions/latest/web-components/forms/form) in API versions 2025-10 and newer. *** ## Updated properties The following properties are different in the Polaris form component. ### on​Submit The previous `Form` `onSubmit` prop still uses `onSubmit` in Preact, but it now handles the [`submit`](https://shopify.dev/docs/api/checkout-ui-extensions/latest/web-components/forms/form#events-propertydetail-submit) event. The handler now receives an `Event` instead of being called with no arguments. When migrating, also update your submit button: ` ); } ``` ***