UI Kit components
Jira UI Kit components
UI Kit hooks
Forge bridge APIs
Jira bridge APIs
Upgrade UI Kit versions
Previous versions

Progress bar

To add the ProgressBar component to your app:

1
2
import { ProgressBar } from '@forge/react';

Description

A progress bar communicates the status of a system process.

Props

NameTypeRequiredDescription
appearance"default" | "success" | "inverse"NoVisual style of the progress bar.
ariaLabelstringNoLabel associated with the progress bar, read by screen readers.
isIndeterminatebooleanNoShows the progress bar in an indeterminate state when true.
valuenumberNoSets the value of the progress bar, between 0 and 1 inclusive.

Examples

Appearance

Default

The default appearance of a progress bar.

Example image of a progress bar with default appearance

1
2
const ProgressBarDefaultExample = () => {
  return <ProgressBar ariaLabel="Done: 3 of 10 issues" value={0.3} />;
};

Inverse

Example image of a progress bar with inverse appearance

1
2
const ProgressBarInverseExample = () => {
  return (
    <Box backgroundColor="color.background.information.bold">
      <ProgressBar
        appearance="inverse"
        ariaLabel="Done: 6 of 10 issues"
        value={0.6}
      />
    </Box>
  );
};

Success

Success indicates the completion of a process.

Example image of a progress bar with success appearance

1
2
const ProgressBarSuccessExample = () => {
  return (
    <ProgressBar
      appearance="success"
      ariaLabel="Done: 10 of 10 issues"
      value={1}
    />
  );
};

Indeterminate

Indeterminate progress bars display movement along the container until the process is finished.

Example image of a progress bar with indeterminate appearance

1
2
const ProgressBarIndeterminateExample = () => {
  return <ProgressBar ariaLabel="Loading issues" isIndeterminate />;
};

Accessibility considerations

When using the ProgressBar component, we recommend keeping the following accessibility considerations in mind:

  • Use the progress bar component as a loading indicator or to communicate the status of a system process.
  • Use helper text with a progress bar if the process is complex or has a long wait time. This lets users know what sub-processes are taking place.
  • Use a success state when the actions required to continue have been fulfilled.

Rate this page: