Tpk Reset Password

A ready-to-use reset password form with password and confirm password fields 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.
@resetPasswordSchema ZodObject<{ password, confirmPassword }> Yes A Zod object schema with password and confirmPassword fields used to validate the form.
@initialValues { password: string; confirmPassword: string } No Optional initial values for the password and confirmPassword fields.
@submitButtonText string No Label for the submit button. Defaults to 'Reset Password'.