-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1749c86
commit 0e01d2e
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
packages/react-core/src/components/Wizard/examples/WizardFocusOnNextBack.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from 'react'; | ||
import { Wizard, WizardStep } from '@patternfly/react-core'; | ||
|
||
export const WizardFocusOnNextBack: React.FunctionComponent = () => ( | ||
<Wizard shouldFocusContentOnNextOrBack title="Wizard that focuses content on next or back click"> | ||
<WizardStep name="Step 1" id="wizard-focus-first-step"> | ||
Step 1 content | ||
</WizardStep> | ||
<WizardStep name="Step 2" id="wizard-focus-second-step"> | ||
Step 2 content | ||
</WizardStep> | ||
<WizardStep name="Review" id="wizard-focus-review-step" footer={{ nextButtonText: 'Finish' }}> | ||
Review step content | ||
</WizardStep> | ||
</Wizard> | ||
); |