jaredpalmer / formik

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

can I use formik to create procedurally a dynamic form? #2390

Open cesarpachon opened 4 years ago

cesarpachon commented 4 years ago

❓Question

hi, I wonder if formik would be a good choice for producing dynamic forms.. lets say, you have a json describing the form and you pass it to formik to generate the HTML. Something similar to alpacajs but more react friendly.. thanks.

coreyar commented 4 years ago

Have you checked out https://github.com/flipbyte/formik-json-schema. It looks like it accomplishes what you are looking for using Formik and JSON Schema

bradjones1 commented 2 years ago

Despite the name, I don't think that project actually uses json-schema (that is, the spec) but rather a custom format for expressing the schema.

bradjones1 commented 2 years ago

There is https://github.com/rjsf-team/react-jsonschema-form and https://github.com/zhigang1992/react-native-jsonschema-form, but the latter looks to be a bit one-off for me to want to use it. Could be the foundation for something in the future, though.