robertLichtnow / zod-formik-adapter

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

API suggestion #14

Open quantizor opened 1 year ago

quantizor commented 1 year 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} />