| 1 |
import { Wizard, WizardStep } from '@patternfly/react-core'; |
| 2 |
|
| 3 |
export const WizardWithCustomNavItem: React.FunctionComponent = () => ( |
| 4 |
<Wizard height={400} title="Custom navigation item wizard"> |
| 5 |
<WizardStep name="Step 1" id="custom-nav-item-first-step"> |
| 6 |
Step 1 content |
| 7 |
</WizardStep> |
| 8 |
<WizardStep |
| 9 |
id="custom-nav-item-second-step" |
| 10 |
name="Step 2" |
| 11 |
navItem={{ |
| 12 |
content: <span>Custom item</span> |
| 13 |
}} |
| 14 |
> |
| 15 |
Step 2 content with a custom navigation item |
| 16 |
</WizardStep> |
| 17 |
<WizardStep name="Review" id="custom-nav-item-review-step" footer={{ nextButtonText: 'Finish' }}> |
| 18 |
Review step content |
| 19 |
</WizardStep> |
| 20 |
</Wizard> |
| 21 |
); |