API reference
components/wizard
Import
Section titled “Import”import * as api from "@fungi.computer/caps/components/wizard";Exports
Section titled “Exports”| Kind | Export | Description |
|---|---|---|
| type alias | WizardStep | A named step. Values and validation remain in the caller’s form. |
| function | Wizard() | Controlled step presentation, composable with one TanStack Form across steps. |
WizardSteptype alias
Section titled “WizardStep”type WizardStep = object;A named step. Values and validation remain in the caller’s form.
Properties
Section titled “Properties”id: string;title: string;content
Section titled “content”content: ReactNode;Wizard()function
Section titled “Wizard()”function Wizard(__namedParameters): Element;Controlled step presentation, composable with one TanStack Form across steps.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
__namedParameters |
{ steps: readonly WizardStep[]; current: string; onStepChange: (id) => void; disabled?: boolean; nextDisabled?: boolean; actions?: ReactNode; } |
- |
__namedParameters.steps |
readonly WizardStep[] |
- |
__namedParameters.current |
string |
- |
__namedParameters.onStepChange |
(id) => void |
- |
__namedParameters.disabled? |
boolean |
- |
__namedParameters.nextDisabled? |
boolean |
Validation may block advancing without preventing edits to previous steps. |
__namedParameters.actions? |
ReactNode |
- |
Returns
Section titled “Returns”Element