SubComponents

Step

The Step subcomponent, takes the content, the Header and the Footer rendered on each step.

Step API

This subcomponent extends the native <div>arrow-up-right API. That's why the className prop is not included in the table.

Props
Type
Required

children

ReactNode

βœ…

title

string

βœ…

isDisabled

boolean

❌

onClick

() => void

❌

chevron-rightchildrenhashtag

The children has 2 main divisions, first, the content you want to add, which can be a string, or a ReactElement and then, the <Wizard.Footer> to render elements in the footer,

chevron-righttitlehashtag

A string used to render the step title.

chevron-rightisDisabledhashtag

Boolean to control if the step takes a disabled state.

chevron-rightonClickhashtag

Function executed when a Step is clicked, mainly used when changing the selectedStep

An space to render custom elements in the MiniWizard footer, mainly buttons.

Props
Type
Required

children

ReactNode

βœ…

Button

You can use the Wizard.Button when passing a children to the Footer subcomponent, without importing the Button itself.

An space to render custom elements in the Wizard header, mainly buttons.

Header API

Props
Type
Required

children

ReactNode

βœ…

Button

You can use the MiniWizard.Button when passing a children to the StepNavigation subcomponent, without importing the Button itself.

ReviewStepSection

The ReviewStepSection subcomponent, is not required and can be omitted, it was made to simplify the steps review + confirm. You can use it to reduce the amount of work, or if you are using a review + confirm alike step.

ReviewStepSection API

This subcomponent extends the native <div>arrow-up-right API. That's why the className prop is not included in the table.

Props
Type
Required

children

ReactNode

βœ…

heading

ReactNode

βœ…

onButtonClick

() => void

βœ…

chevron-rightchildrenhashtag

The element displayed below the title and button border.

chevron-rightheadinghashtag

Controls the heading content.

chevron-rightonButtonClickhashtag

A function that is called when the edit icon button is clicked.

Last updated