| 1 |
import { Wizard, WizardStep } from '@patternfly/react-core'; |
| 2 |
|
| 3 |
export const WizardExpandableSteps: React.FunctionComponent = () => ( |
| 4 |
<Wizard height={400} title="Expandable steps wizard" nav={{ isExpanded: true }}> |
| 5 |
<WizardStep |
| 6 |
name="Step 1" |
| 7 |
id="expand-steps-1" |
| 8 |
isExpandable |
| 9 |
steps={[ |
| 10 |
<WizardStep name="Substep A" id="expand-steps-sub-a" key="expand-steps-sub-a"> |
| 11 |
Substep A content |
| 12 |
</WizardStep>, |
| 13 |
<WizardStep name="Substep B" id="expand-steps-sub-b" key="expand-steps-sub-b"> |
| 14 |
Substep B content |
| 15 |
</WizardStep> |
| 16 |
]} |
| 17 |
/> |
| 18 |
<WizardStep name="Step 2" id="expand-steps-2"> |
| 19 |
Step 2 content |
| 20 |
</WizardStep> |
| 21 |
<WizardStep |
| 22 |
name="Step 3" |
| 23 |
id="expand-steps-3" |
| 24 |
isExpandable |
| 25 |
steps={[ |
| 26 |
<WizardStep name="Substep C" id="expand-steps-sub-c" key="expand-steps-sub-c"> |
| 27 |
Substep C content |
| 28 |
</WizardStep>, |
| 29 |
<WizardStep name="Substep D" id="expand-steps-sub-d" key="expand-steps-sub-d"> |
| 30 |
Substep D content |
| 31 |
</WizardStep> |
| 32 |
]} |
| 33 |
/> |
| 34 |
<WizardStep name="Step 4" id="expand-steps-4"> |
| 35 |
Step 4 content |
| 36 |
</WizardStep> |
| 37 |
<WizardStep name="Review" id="expand-steps-review" footer={{ nextButtonText: 'Finish' }}> |
| 38 |
Review step content |
| 39 |
</WizardStep> |
| 40 |
</Wizard> |
| 41 |
); |