Tpk Login

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