Tpk Forgot Password

A ready-to-use forgot password form with an email field backed by Zod validation.

Examples

Basic usage

Properties

Name Type Required Description
@onSubmit Function Yes Callback called with validated data and the changeset on successful submission.
@forgotPasswordSchema ZodObject<{ email }> Yes A Zod object schema with an email field used to validate the form.
@initialValues { email: string } No Optional initial values for the email field.
@submitButtonText string No Label for the submit button. Defaults to 'Send reset link'.