Form Validation
Test real-time form validation using Zod schemas
Email Validation
Enter an email address to test real-time validation
Zod Schema
The validation schema used for this form
// From schema.tsx
import { z } from 'zod';
export const emailSchema = z.object({
email: z.string().email('Please enter a valid email address'),
});
// Used in this form:
const result = emailSchema.parse({ email });