jaredpalmer / formik

Build forms in React, without the tears 😭
https://formik.org
Apache License 2.0
33.9k stars 2.79k forks source link

Destructure field into Props #3881

Open jd-carroll opened 1 year ago

jd-carroll commented 1 year ago

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!)