

Every state


default


focus


step-two


validation-error


review


submitted


narrow
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| steps | { id; title; description? }[] | – | The steps, shown in the header and as each panel's heading |
| panels | ReactNode[] | (ctx) => ReactNode[] | – | One panel per step, or a function given { step, errors, values } (for a review step) |
| validate | (step, data: FormData) => Record<string, string> | null | – | Field name to message; any entry blocks Continue and shows the summary |
| defaultStep | number | – | Starting step |
| defaultValues | Record<string, string> | – | Starting values, read by the panels through ctx.values |
| defaultSubmitted | boolean | – | Start in the submitted state |
| onSubmit | (data: FormData) => void | – | Called with all fields when the last step is valid |
| action | string | – | Native post target when there is no onSubmit |
| method | "post" | "get" | – | Form method |
| label | string | – | Accessible name of the form |
| stepLabel | string | – | Word before the step number |
| ofLabel | string | – | Word between the number and the total |
| backLabel | string | – | Back button text |
| continueLabel | string | – | Continue button text |
| submitLabel | string | – | Final button text |
| submittedTitle | string | – | Heading after submit |
| submittedText | string | – | Text after submit |
| restartLabel | string | – | Restart button text |
More steppers
All 8stepper-08 is in UI ProGet UI Pro, €199


