damianricobelli / stepperize

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

Feedback for “useStepper” #61

Open james-kaguru opened 1 month ago

james-kaguru commented 1 month ago

First of I'd like to say that it was a bold step creating the pr for intergrating into shadcn and finally creating your own seperate library. Ive gone through the docs and I was checking out the step docs and was really curious what informed the stepper.when syntax?

damianricobelli commented 1 month ago

Could you explain your question in a little more detail? I think I can't understand it

james-kaguru commented 1 month ago

like for example .Below the example show using stepper.when as an "if statement" to choose which stepper will be shown.

Screenshot 2024-09-30 at 9 28 06 AM

Unlike the way radix ui uses value in switching between the contect that is shown

Screenshot 2024-09-30 at 9 30 42 AM
damianricobelli commented 1 month ago

I think the equivalent of what you show with Radix is the switch or match method.

james-kaguru commented 1 month ago

ooh like the question was what informed the use of stepper.when to be the "content switcher" the api looks a bit foregin