| 1 |
import { Wizard as WizardDeprecated } from '@patternfly/react-core/deprecated'; |
| 2 |
|
| 3 |
export const WizardExpandableSteps: React.FunctionComponent = () => { |
| 4 |
const steps = [ |
| 5 |
{ |
| 6 |
name: 'First step', |
| 7 |
steps: [ |
| 8 |
{ name: 'Substep A', component: <p>Substep A content</p> }, |
| 9 |
{ name: 'Substep B', component: <p>Substep B content</p> } |
| 10 |
] |
| 11 |
}, |
| 12 |
{ name: 'Second step', component: <p>Step 2 content</p> }, |
| 13 |
{ |
| 14 |
name: 'Third step', |
| 15 |
steps: [ |
| 16 |
{ name: 'Substep C', component: <p>Substep C content</p> }, |
| 17 |
{ name: 'Substep D', component: <p>Substep D content</p> } |
| 18 |
] |
| 19 |
}, |
| 20 |
{ name: 'Fourth step', component: <p>Step 4 content</p> }, |
| 21 |
{ name: 'Review', component: <p>Review step content</p>, nextButtonText: 'Finish' } |
| 22 |
]; |
| 23 |
const title = 'Expandable wizard example'; |
| 24 |
return ( |
| 25 |
<WizardDeprecated |
| 26 |
navAriaLabel={`${title} steps`} |
| 27 |
mainAriaLabel={`${title} content`} |
| 28 |
steps={steps} |
| 29 |
height={400} |
| 30 |
isNavExpandable |
| 31 |
/> |
| 32 |
); |
| 33 |
}; |