formik icon indicating copy to clipboard operation
formik copied to clipboard

Destructure field into Props

Open jd-carroll opened this issue 2 years ago • 0 comments

https://github.com/jaredpalmer/formik/blob/fe4ed7e048b14331a75e40cabf48e4787d9b2b71/packages/formik/src/Field.tsx#L215

It would be nice if field was destructured into the component props just like the others. I am certain this has been brought up before and I get that this would be a breaking change. Nevertheless, as is the receiving component needs to be "aware" of the formik field and and grab the necessary attributes from there. (I think this is a bug)

Happy to get a PR spun up, but thought I would open a discussion first.

(:heart: Thank you for all the work on Formik!)

jd-carroll avatar Sep 11 '23 17:09 jd-carroll