| 1 |
--- |
| 2 |
id: Progress stepper |
| 3 |
section: components |
| 4 |
cssPrefix: pf-v6-c-progress-stepper |
| 5 |
propComponents: ['ProgressStepper', 'ProgressStep'] |
| 6 |
--- |
| 7 |
|
| 8 |
import { Fragment, useState } from 'react'; |
| 9 |
import RhUiInProgressIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-in-progress-icon'; |
| 10 |
import RhUiPendingIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-pending-icon'; |
| 11 |
|
| 12 |
## Examples |
| 13 |
|
| 14 |
Progress steppers have default icons associated with the `variant` property, and may be overriden and customized using the `icon` property. |
| 15 |
|
| 16 |
### Basic |
| 17 |
|
| 18 |
```ts file="ProgressStepperBasic.tsx" |
| 19 |
``` |
| 20 |
|
| 21 |
### With step descriptions |
| 22 |
|
| 23 |
```ts file="ProgressStepperBasicWithDescription.tsx" |
| 24 |
``` |
| 25 |
|
| 26 |
### With alignment |
| 27 |
|
| 28 |
```ts file="ProgressStepperBasicWithAlignment.tsx" |
| 29 |
``` |
| 30 |
|
| 31 |
### Compact |
| 32 |
|
| 33 |
Compact progress steppers will only display the current step's `title`, and will not display any steps' `description` texts. |
| 34 |
|
| 35 |
```ts file="ProgressStepperCompact.tsx" |
| 36 |
``` |
| 37 |
|
| 38 |
### With an issue |
| 39 |
|
| 40 |
```ts file="ProgressStepperBasicIssue.tsx" |
| 41 |
``` |
| 42 |
|
| 43 |
### With a failure |
| 44 |
|
| 45 |
```ts file="ProgressStepperBasicFailure.tsx" |
| 46 |
``` |
| 47 |
|
| 48 |
### With custom icons |
| 49 |
|
| 50 |
```ts file="ProgressStepperCustomIcons.tsx" |
| 51 |
``` |
| 52 |
|
| 53 |
### With help popover |
| 54 |
|
| 55 |
To add a popover to a progress step, set the `popoverRender` properties on the `ProgressStep` component. |
| 56 |
|
| 57 |
```ts file="ProgressStepperHelpPopover.tsx" |
| 58 |
``` |