zod-formik-adapter

JSON →
library 2.0.0 ·javascript
verified Jun 7, 2026

A thin adapter that converts Zod validation schemas into Formik-compatible validationSchema or validate props. Current stable version is 2.0.0. This library bridges Zod 4.x with Formik 2.x, providing two main exports: toFormikValidationSchema and toFormikValidate. Unlike manual transformation, it handles error mapping automatically and preserves Zod's error details. It is essential when migrating from Yup to Zod in Formik projects.