Ask AI is now on the home page — ask a question and get a sourced answer from the Ory docs. You'll also find it in the bottom-right corner of any page.

Skip to main content

<OryForm />

function OryForm(props: {
children?: ReactNode
onAfterSubmit?: (method: undefined | string | number | boolean) => void
}): Element

The OryForm component is the main form container for Ory flows.

It renders the form with the correct action and method, and handles the submission of the form.

Parameters

ParameterTypeDescription
props{ children?: ReactNode; onAfterSubmit?: (method: undefined | string | number | boolean) => void; }The props for the OryForm component.
props.children?ReactNode-
props.onAfterSubmit?(method: undefined | string | number | boolean) => voidA callback function that is called after the form is submitted. It is always called after the form is submitted, unless the form submission is prevented by client side validation or the API response dictated that the client should be redirected

Returns

Element