Modular Forms is in maintenance mode. We recommend Formisch, its official successor, for new projects.

zodField

Creates a validation functions that parses the Zod schema of a field.

const validate = zodField(schema);

Parameters

Return