ModalWizard
Installation
import { ModalWizard } from 'uxp/components';Signature
const ModalWizard: React.FunctionComponent<IModalWizardProps>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
Mandatory
Default Value
Example Value
Related Types
Last updated