Wizard API
import { Wizard } from '@editora/ui-react';
Props
| Prop | Type | Description |
|---|---|---|
busy | boolean | |
density | "default" | "compact" | "comfortable" | |
description | string | |
emptyLabel | string | |
finishLabel | string | |
headless | boolean | |
hideControls | boolean | |
keepMounted | boolean | |
lazyMount | boolean | |
linear | boolean | |
nextLabel | string | |
onBeforeChange | (detail: WizardBeforeChangeDetail) => boolean | void | |
onBlockedNext | (detail: WizardBlockedNextDetail) => void | |
onChange | (detail: WizardChangeDetail) => void | |
onComplete | (detail: { index: number; value: string; title: string; }) => void | |
onStepChange | (detail: WizardChangeDetail) => void | |
orientation | "horizontal" | "vertical" | |
prevLabel | string | |
shape | "rounded" | "square" | "pill" | |
showProgress | boolean | |
showStepper | boolean | |
stepperPosition | "top" | "bottom" | |
title | string | |
value | string | |
variant | "default" | "soft" | "glass" | "flat" | "contrast" | "minimal" |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Wizard.Step props
| Prop | Type | Description |
|---|---|---|
children | React.ReactNode | |
description | string | |
disabled | boolean | |
invalid | boolean | |
optional | boolean | |
state | "default" | "complete" | "success" | "warning" | "error" | |
title | string | |
value (required) | string |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Element: <ui-wizard>
Wizard renders the ui-wizard custom element from @editora/ui-core, which can also be used without React.
Attributes: animate, aria-label, busy, density, description, empty-label, finish-label, headless, hide-controls, keep-mounted, lazy-mount, linear, next-label, orientation, prev-label, shape, show-progress, show-stepper, stepper-position, title, value, variant
Events: before-change, blocked-next, change, complete, input, step-change, validate-step