Skip to content
API reference

components/wizard

Import
import * as api from "@fungi.computer/caps/components/wizard";
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”
Signature
type WizardStep = object;

A named step. Values and validation remain in the caller’s form.

Signature
id: string;
Signature
title: string;
Signature
content: ReactNode;
Signature
function Wizard(__namedParameters): Element;

Controlled step presentation, composable with one TanStack Form across steps.

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 -

Element