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> API. That's why the className prop is not included in the table.
children
ReactNode
✅
title
string
✅
isDisabled
boolean
❌
onClick
() => void
Footer
An space to render custom elements in the MiniWizard footer, mainly buttons.
Footer API
children
ReactNode
✅
Button
You can use the Wizard.Button
when passing a children to the Footer
subcomponent, without importing the Button
itself.
Header
An space to render custom elements in the Wizard
header, mainly buttons.
Header API
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> API. That's why the className prop is not included in the table.
children
ReactNode
✅
heading
ReactNode
✅
onButtonClick
() => void
✅
Last updated