vantezzen / auto-form

🌟 A React component that automatically creates a @shadcn/ui form based on a zod schema.
https://vantezzen.github.io/auto-form/
2.27k stars 81 forks source link

Stepper, Dependencies, Next JS and more... #55

Closed roeyazroel closed 5 months ago

roeyazroel commented 5 months ago

Hi

Just wanted to say - awesome work! it saved me many hours, and i leverage this project in many of my projects.

I've add some more functionality based on your project....

It is big changes, not sure if you want to push it but anyway this is the PR.

the demo site is: https://auto-form.vercel.app/

Thanks again!

vantezzen commented 5 months ago

This looks amazing, thank you for your contribution! I now merged your updated components and dependency logic. I updated how dependencies are defined so that multiple dependencies can be defined for the same field and so that the syntax is (hopefully) a bit more intuitive.

As for the stepper component and NextJS integration, I think those are beyond the scope of the main project as they require more setup than just passing the zod schema. I now added a new "When to use AutoForm?" section to the readme and added a link to your repo for people interested in that functionality.