Form Example

Basic form handling and Zod validation with vovk-zod.

zod.ts
FormController.ts
FormExample.tsx
1import { z } from 'zod';
2
3export const userSchema = z
4 .object({
5 name: z.string().min(2).max(20),
6 email: z.string().email(),
7 })
8 .strict();
1import { z } from 'zod';
2
3export const userSchema = z
4 .object({
5 name: z.string().min(2).max(20),
6 email: z.string().email(),
7 })
8 .strict();