| 1 |
import { Fragment } from 'react'; |
| 2 |
import { PageSection, PageSectionTypes, Wizard, WizardStep } from '@patternfly/react-core'; |
| 3 |
import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper'; |
| 4 |
|
| 5 |
export const WizardFullPage: React.FunctionComponent = () => ( |
| 6 |
<Fragment> |
| 7 |
<DashboardWrapper hasPageTemplateTitle> |
| 8 |
<PageSection hasBodyWrapper={false} type={PageSectionTypes.wizard} aria-label="Wizard container"> |
| 9 |
<Wizard> |
| 10 |
<WizardStep name="Information" id="wizard-step-1"> |
| 11 |
<p>Step 1 content</p> |
| 12 |
</WizardStep> |
| 13 |
<WizardStep |
| 14 |
name="Configuration" |
| 15 |
id="wizard-step-2" |
| 16 |
steps={[ |
| 17 |
<WizardStep name="Substep A" id="wizard-step-2a" key="wizard-step-2a"> |
| 18 |
<p>Configuration substep A</p> |
| 19 |
</WizardStep>, |
| 20 |
<WizardStep name="Substep B" id="wizard-step-2b" key="wizard-step-2b"> |
| 21 |
<p>Configuration substep B</p> |
| 22 |
</WizardStep> |
| 23 |
]} |
| 24 |
/> |
| 25 |
<WizardStep name="Additional" id="wizard-step-3"> |
| 26 |
<p>Step 3 content</p> |
| 27 |
</WizardStep> |
| 28 |
<WizardStep name="Review" id="wizard-step-4" footer={{ nextButtonText: 'Finish' }}> |
| 29 |
<p>Review step content</p> |
| 30 |
</WizardStep> |
| 31 |
</Wizard> |
| 32 |
</PageSection> |
| 33 |
</DashboardWrapper> |
| 34 |
</Fragment> |
| 35 |
); |