| 1 |
import { ProgressStepper, ProgressStep } from '@patternfly/react-core'; |
| 2 |
import RhUiInProgressIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-in-progress-icon'; |
| 3 |
import RhUiPendingIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-pending-icon'; |
| 4 |
|
| 5 |
export const ProgressStepperCustomIcons: React.FunctionComponent = () => ( |
| 6 |
<ProgressStepper aria-label="Progress stepper with custom icons"> |
| 7 |
<ProgressStep |
| 8 |
variant="success" |
| 9 |
id="custom-step1" |
| 10 |
titleId="custom-step1-title" |
| 11 |
aria-label="completed step, step with success" |
| 12 |
> |
| 13 |
Successful completion |
| 14 |
</ProgressStep> |
| 15 |
<ProgressStep |
| 16 |
isCurrent |
| 17 |
icon={<RhUiInProgressIcon />} |
| 18 |
id="custom-step2" |
| 19 |
titleId="custom-step2-title" |
| 20 |
aria-label="in progress" |
| 21 |
> |
| 22 |
In process |
| 23 |
</ProgressStep> |
| 24 |
<ProgressStep |
| 25 |
variant="pending" |
| 26 |
icon={<RhUiPendingIcon />} |
| 27 |
id="custom-step3" |
| 28 |
titleId="custom-step3-title" |
| 29 |
aria-label="pending step" |
| 30 |
> |
| 31 |
Pending |
| 32 |
</ProgressStep> |
| 33 |
</ProgressStepper> |
| 34 |
); |