ModalWizard
Installation
import {ModalWizard} from 'uxp/components';Examples
<ModalWizard
show={show}
title="Sample modal wizard"
steps={[
{
id: "step-1",
render: (props) => <div>
<FormField>
<Label>Name</Label>
<Input value={name} onChange={setName} />
</FormField>
<FormField>
<Label>Email</Label>
<Input value={email} onChange={setEmail} />
</FormField>
</div>,
renderStatus: () => <div>Personal Details</div>,
onValidateStep: () => "step-2",
showStatus: true
},
{
id: "step-2",
render: (props) => <div>
<FormField>
<Label>University</Label>
<Input value={school} onChange={setSchool} />
</FormField>
</div>,
renderStatus: () => <div>Educational Details</div>
}
]}
onClose={() => { setShow(false) }}
onComplete={async () => { return executeAction("model", "action", {data: data}) }}
/>Properties
Name
Type
Description
show
type
onClose
type
title
type
icon
type
onRenderHeader
type
steps
type
onComplete
type
completionText
type
className
type
Last updated