damianricobelli / stepperize

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

docs, react: improve docs with fumadocs, add examples and new methods #53

Open damianricobelli opened 4 weeks ago

damianricobelli commented 4 weeks ago

Description

Related Issues

changeset-bot[bot] commented 4 weeks ago

🦋 Changeset detected

Latest commit: 03c8ac7fe15ce4393bfcef88429e4769f5609fc8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages | Name | Type | | ----------------- | ----- | | docs | Patch | | @stepperize/react | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

vercel[bot] commented 4 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
stepperize ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 12, 2024 6:12pm
wottpal commented 3 weeks ago

Just checked it out and the new forms example looks amazing. One minor heads up, the step-titles/buttons seem to be clickable/navigatable-to regardless of an invalid form state.

CleanShot 2024-08-26 at 15 22 16@2x

VinczeBertold commented 3 weeks ago

Just checked it out and the new forms example looks amazing. One minor heads up, the step-titles/buttons seem to be clickable/navigatable-to regardless of an invalid form state.

CleanShot 2024-08-26 at 15 22 16@2x

Very easy to fix, just change the onClick to the following:

onClick={() => {
    form.handleSubmit((values) => {
      stepper.goTo(step.id);
    })();
  }}