Skip to main content
Version: Next

Wizard API

import { Wizard } from '@editora/ui-react';

Props​

PropTypeDescription
busyboolean
density"default" | "compact" | "comfortable"
descriptionstring
emptyLabelstring
finishLabelstring
headlessboolean
hideControlsboolean
keepMountedboolean
lazyMountboolean
linearboolean
nextLabelstring
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"
prevLabelstring
shape"rounded" | "square" | "pill"
showProgressboolean
showStepperboolean
stepperPosition"top" | "bottom"
titlestring
valuestring
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​

PropTypeDescription
childrenReact.ReactNode
descriptionstring
disabledboolean
invalidboolean
optionalboolean
state"default" | "complete" | "success" | "warning" | "error"
titlestring
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