• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
nbbaier

nbbaier

better-auth

Public
Like
better-auth
Home
Code
6
backend
3
frontend
3
shared
1
README.md
auth-client.ts
auth.ts
Branches
1
Pull requests
Remixes
History
Environment variables
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.
Sign up now
Code
/
frontend
/
components
/
README.md
Code
/
frontend
/
components
/
README.md
Search
9/18/2025
Viewing readonly version of main branch: v91
View latest version
README.md

LoginForm Component

A React component that provides a login form with client-side validation using Zod.

Features

  • 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

Usage

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.

FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.