Progress indicator
A progress indicator shows the user where they are along the steps of a journey.Installation
| Install | yarn add @atlaskit/progress-indicator |
|---|---|
| Source | Bitbucket.org, (opens new window) |
| npm | @atlaskit/progress-indicator, (opens new window) |
| Bundle | unpkg.com, (opens new window) |
Props
| Description | Sets the color of the indicators. |
|---|---|
| Default | "default" |
| Type | "default" | "help" | "inverted" | "primary" |
| Description | If interaction is enabled, use |
|---|---|
| Default | "panel" |
| Type | string |
| Description | Describes what the indicator represents to assistive technology. The selected index number will be appended to the label. |
|---|---|
| Default | "tab" |
| Type | string |
| Description | Returns the accessible label for each selectable indicator. |
|---|---|
| Type | (index: number) => string |
| Description | Function called when an indicator is selected. |
|---|---|
| Type | (eventData: { event: React.MouseEvent<HTMLButtonElement, MouseEvent>; index: number; }, analyticsEvent: UIAnalyticsEvent) => void |
| Description | Which indicator is currently selected. |
|---|---|
| Type | number |
| Description | Sets the width and height of each indicator. |
|---|---|
| Default | "default" |
| Type | "default" | "large" |
| Description | Specifies how much of a gutter there is between indicators. |
|---|---|
| Type | "comfortable" | "cozy" | "compact" |
| Description | A hook for automated tests. |
|---|---|
| Type | string |
| Description | An array of values mapped over to create the indicators. |
|---|---|
| Type | any[] |