Wizard
Wizard represents a stepped workflow as a form of linear and mandatory progression through a defined process with several bullet points where the user need to interact with the content of each step during the workflow.
Name | Type | Description | Default |
---|---|---|---|
defaultCurrentStep | number | Initially selected step, only when it is uncontrolled. | - |
currentStep | number | Defines which step is marked as the current. The numeration starts at 0. If undefined, the component will be uncontrolled and the step will be managed internally by the component. | 0 |
mode | 'horizontal' | 'vertical' | The wizard can be shown in horizontal or vertical. | 'horizontal' |
Required | { label: string; description?: string; icon?: string | (React.ReactNode & React.SVGProps <SVGSVGElement>); disabled?: boolean; valid?: boolean; }[] | An array of objects representing the steps. Each of them has the following properties:
| - |
onStepClick | (currentStep: number) => void | This function will be called when the user clicks a step. The step number will be passed as a parameter. | - |
margin | 'xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | Margin | Size of the margin to be applied to the component. You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes. | - |
tabIndex | number | Value of the tabindex attribute. | 0 |