Skip to content

PasswordResetRequestForm

Request a password-reset email. On success it shows a non-revealing confirmation (never disclose whether the email exists).

import { PasswordResetRequestForm } from "@evolve-storefront/feature-auth/password-reset-request-form";

Renders inside AuthProvider.

Preview

DefaultOpen in Storybook ↗

Usage

// Replaces itself with a confirmation once sent, whether or not the email has an account.
<PasswordResetRequestForm />;

Props

PropTypeDescription
validationBehavior?"aria" | "native"

Default "aria": mark fields via ARIA rather than blocking native submit. The form is then noValidate, so an input's own constraint (type="email") never stops the submit with a browser tooltip that the field's error does not match.

onResetRequested?(() => void)
defaultValues?{ email?: string | undefined; }

Any other props go to the root element, like on a plain HTML element.