damianricobelli / stepperize

A library for creating step-by-step workflows in your apps
https://stepperize.vercel.app
917 stars 40 forks source link

Documentation on Forms #48

Closed wottpal closed 1 month ago

wottpal commented 2 months ago

I would love to see the Examples > Forms section being populated with a tutorial on how to use this together with zod & react-hook-form. And also some stuff like I can only navigate forwards until the current part of the form is valid.

damianricobelli commented 2 months ago

Hey, thanks for your proposal. We are working on these examples, we hope to have them ready next week

austinm911 commented 2 months ago

+1 https://github.com/TanStack/form

damianricobelli commented 2 months ago

@austinm911 not sure about incorporating an example with tanstack form, as it is still in beta version

As a first version of examples, I will incorporate the case of react-hook-form and @conform-to/react

@wottpal you can save time and check out this PR which includes a complete example with react-hook-form --> https://github.com/damianricobelli/stepperize/pull/53

Husain010 commented 2 months ago

Do you have any update on this? I had seen the examples present at one time but as of today, it's not there! Can you please add them

damianricobelli commented 2 months ago

@Husain010 Working on this 🙂

Husain010 commented 2 months ago

Cool! Ready to contribute in any way possible!

madanbazgai commented 1 month ago

Bro last time I checked there were many example forms now they're gone, looks like you're making new documentation, can you please provide old one?

damianricobelli commented 1 month ago

@madanbazgai for now, you can check it out this PR and find the examples 🤝

https://github.com/damianricobelli/stepperize/pull/53

wottpal commented 1 month ago

Bro last time I checked there were many example forms now they're gone, looks like you're making new documentation, can you please provide old one?

It also took me a bit figuring out where it is now as the respective .mdx file is empty again. Check out this: https://github.com/damianricobelli/stepperize/blob/feature/add-examples/apps/docs/components/examples/react-hook-form.tsx

damianricobelli commented 1 month ago

Merged! 🔥

wottpal commented 1 month ago

Amazing docs upgrade, @damianricobelli. They really feel first-class 🚀