Examples · Forms
Multi-step wizard
wizard() over a server form with [data-step] sections: validation per step, focus, progress.
Steps are just sections of one form. wizard() validates only the current step before moving on, moves focus to the new step, announces “Step n of N” and exposes step, first, last and progress as signals.
What to notice
- Pressing Next with an empty field keeps you on the step and shows the error.
- Back never validates; the values are kept because it is one form.
- The progress bar is a computed over
w.progress.
Fill the first step, go Next, then Back: your values are still there.