New Ory Agent Security is now live! Claim your complimentary test drive. Get Started!

Skip to main content

<Registration />

function Registration(props: {
children?: ReactNode
components?: OryFlowComponentOverrides
config: OryClientConfiguration
flow: RegistrationFlow
lastUsedMethodStorage?: LastUsedMethodStorage
onError?: OryErrorHandler
onSuccess?: OrySuccessHandler
onValidationError?: OryValidationErrorHandler
transientPayload?: OryTransientPayload
}): Element

The Registration component is used to render the registration flow in Ory Elements.

Parameters​

ParameterTypeDescription
props{ children?: ReactNode; components?: OryFlowComponentOverrides; config: OryClientConfiguration; flow: RegistrationFlow; lastUsedMethodStorage?: LastUsedMethodStorage; onError?: OryErrorHandler; onSuccess?: OrySuccessHandler; onValidationError?: OryValidationErrorHandler; transientPayload?: OryTransientPayload; }The props for the Registration component.
props.children?ReactNodeOptional children to render If not provided, the default OrySelfServiceFlowCard will be rendered.
props.components?OryFlowComponentOverridesOptional components to override the default ones. This allows you to customize the appearance and behavior of the registration flow.
props.configOryClientConfigurationThe Ory client configuration object. This object contains the configuration for the Ory client, such as the base URL and other settings.
props.flowRegistrationFlowThe registration flow object containing the state and data for the registration process.
props.lastUsedMethodStorage?LastUsedMethodStorageOptional storage for the last used login method, which Ory Elements keeps when config.project.show_last_used_method is true. Defaults to window.localStorage. Pass the same storage to Login and Registration. Both flows record the method, and a flow without it uses window.localStorage. See LastUsedMethodStorage
props.onError?OryErrorHandlerOptional callback invoked on flow-level errors. See OryErrorHandler
props.onSuccess?OrySuccessHandlerOptional callback invoked on successful flow completion. See OrySuccessHandler
props.onValidationError?OryValidationErrorHandlerOptional callback invoked when the flow returns validation errors. See OryValidationErrorHandler
props.transientPayload?OryTransientPayloadOptional transient payload to include in flow submissions. Accepts a static object or a function that receives form values at submission time and returns the payload. See OryTransientPayload

Returns​

Element