Examples
Progress steppers have default icons associated with the variant
property, and may be overriden and customized using the icon
property.
With step descriptions
- First stepThis is the first thing to happen
- Second stepThis is the second thing to happen
- Third stepThis is the last thing to happen
With alignment
- First stepThis is the first thing to happen
- Second stepThis is the second thing to happen
- Third stepThis is the last thing to happen
Compact
Compact progress steppers will only display the current step's title
, and will not display any steps' description
texts.
- First step
- Second step
- Third step
With help popover
To add a popover to a progress step, set the popoverRender
properties on the ProgressStep
component.
- Fourth step
Props
ProgressStepper
Name | Type | Default | Description |
---|---|---|---|
aria-label | string | Adds an accessible label to the progress stepper. | |
children | React.ReactNode | Content rendered inside the progress stepper. | |
className | string | Additional classes applied to the progress stepper container. | |
isCenterAligned | boolean | Flag indicating the progress stepper should be centered. | |
isCompact | boolean | Flag indicating the progress stepper should be rendered compactly. | |
isVertical | boolean | Flag indicating the progress stepper has a vertical layout. |
ProgressStep
Name | Type | Default | Description |
---|---|---|---|
aria-label | string | Accessible label for the progress step. Should communicate all information being communicated by the progress step's icon, including the variant and the completed status. | |
children | React.ReactNode | Content rendered inside the progress step. | |
className | string | Additional classes applied to the progress step container. | |
description | React.ReactNode | Description text of a progress step. | |
icon | React.ReactNode | Custom icon of a progress step. Will override default icons provided by the variant. | |
isCurrent | boolean | Flag indicating the progress step is the current step. | |
popoverRender | (stepRef: React.RefObject<any>) => React.ReactNode | Forwards the step ref to rendered function. Use this prop to add a popover to the step. | |
titleId | string | ID of the title of the progress step. | |
variant | 'default' | 'success' | 'info' | 'pending' | 'warning' | 'danger' | Variant of the progress step. Each variant has a default icon. |
CSS variables
Expand or collapse column | Selector | Variable | Value |
---|