robertLichtnow / zod-formik-adapter

An adapter for zod object validation to Formik validation schema
https://www.npmjs.com/package/zod-formik-adapter
MIT License
159 stars 15 forks source link

API suggestion #14

Open quantizor opened 2 years ago

quantizor commented 2 years ago

It would be cool to ship a zod-formik-adapter/auto export with a getter such that it automatically wraps the first z.object() call in the adapter... allowing for more straight-forward usage:

import {z} from 'zod-formik-adapter/auto'

const schema = z.object({})

<Formik validationSchema={schema} />