Validation
Realtime validation from the schema
Use your form library normally. AutoForm connects the rendered fields to schema validation and the form state you configure.
View docsschema.ts
const realtimeSchema = z.object({
email: z.email("Enter a valid email"),
password: z.string().min(8, "Use at least 8 characters"),
});
const schemaProvider = new ZodProvider(realtimeSchema);
const { formControl } = createFormControl({
mode: "all",
});