| 1 |
import { Wizard, WizardHeader, WizardStep } from '@patternfly/react-core'; |
| 2 |
|
| 3 |
export const WizardWithHeader: React.FunctionComponent = () => ( |
| 4 |
<Wizard |
| 5 |
height={400} |
| 6 |
title="Header wizard" |
| 7 |
header={ |
| 8 |
<WizardHeader |
| 9 |
title="You're a wizard, Harry" |
| 10 |
description="To be clear, all those not named Harry are not wizards." |
| 11 |
closeButtonAriaLabel="Close header" |
| 12 |
/> |
| 13 |
} |
| 14 |
> |
| 15 |
<WizardStep name="Step 1" id="header-first-step"> |
| 16 |
Step 1 content |
| 17 |
</WizardStep> |
| 18 |
<WizardStep name="Step 2" id="header-second-step"> |
| 19 |
Step 2 content |
| 20 |
</WizardStep> |
| 21 |
<WizardStep name="Review" id="header-review-step" footer={{ nextButtonText: 'Finish' }}> |
| 22 |
Review step content |
| 23 |
</WizardStep> |
| 24 |
</Wizard> |
| 25 |
); |