Skip to main content

<Recovery />

function Recovery(props: {
children?: ReactNode;
components?: OryFlowComponentOverrides;
config: OryClientConfiguration;
flow: RecoveryFlow;
}): Element;

The Recovery component is used to render the recovery flow in Ory Elements.

Parameters

ParameterTypeDescription
props{ children?: ReactNode; components?: OryFlowComponentOverrides; config: OryClientConfiguration; flow: RecoveryFlow; }The props for the Recovery 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 recovery 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.flowRecoveryFlowThe recovery flow object containing the state and data for the recovery process.

Returns

Element

the recovery flow component.