Public
Like
better-auth
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v144View latest version
A React component that provides a login form with client-side validation using Zod.
- Email and password input fields
- Real-time validation using Zod schema
- Error messages displayed below invalid fields
- Form submission logs data to browser console
- Responsive design with TailwindCSS
- Loading state during form submission
The form validates:
- Email: Must be a valid email format
- Password: Must be at least 6 characters long
When submitted successfully, the validated form data is logged to the browser console and a success alert is shown.