-## Progress linear
+## Usage
-
+There are two types of progress indicators available as separate components:
-
-
+- `ProgressLinear`: shows progress on a linear bar.
+- `ProgressRadial`: shows progress in a circular form.
+
+
+
-### Props
+By default, the progress indicators are considered to be "indeterminate". This is useful for short processes, where it isn't necessary (or possible) to indicate the completion percentage. For longer processes, a "determinate" progress indicator should be used.
-
+### Value
-## Progress radial
+To specify a value for determinate progress indicator, the `value` prop can be used. This prop is available for both `ProgressLinear` and `ProgressRadial`. The value must be inclusively between `0` and `100`, representing what percentage of the task has been completed.
-
+
+
+
-
-
+Exclusively for `ProgressLinear`, the `isAnimated` flag is helpful when applying animation to the indicator as the value changes.
+
+
+
+**Note**: If the `indeterminate` prop is set to `true`, this value will be ignored.
+
+### Status
+
+The `status` prop can be used to convey the outcome of a process. The recommended UX flow is to display the default progress indicator during the loading process, and then update the `status` to reflect whether the process was successful, encountered an error, or requires attention.
+
+Three available statuses are:
+
+- `"positive"`: to indicate success.
+- `"negative"`: to indicate failure.
+- `"warning"`: to indicate a cautionary state or partial success.
+
+
+
+
+
+When using the `status` prop, each `ProgressRadial` is accompanied by a status icon, which provides a visual cue to inform the current progress state better. The status icon can also be replaced by custom [content](#content) for more advanced uses.
+
+
+
+
+
+### Label
+
+Indicator labels can be passed into the `labels` prop as an array. If one label is passed, it will be centered. If there are two labels, each is pushed to one end of the progress indicator. This prop is only available for `ProgressLinear`.
+
+
+
+
+
+### Size
+
+Four `size` options available are:
+
+- `"x-small"`
+- `"small"`
+- `"medium"` (default)
+- `"large"`
+
+This prop is only available for `ProgressRadial`.
+
+
+
+
+
+### Content
+
+The `ProgressRadial` component can be wrapped around JSX elements, such as icons or texts. This content helps provide flexibility to enhance the progress display with additional visual appearance. This prop is only available for `ProgressRadial`.
+
+
+
+
+
+**Note**: Indicators of `"x-small"` size will not display its content.
+
## Accessibility
To make the progress indicator accessible to non-sighted users, a visually-hidden "Loading" message will be automatically included when the `value` is not set to 100%.
To further improve the experience, applications should have a mechanism to inform users once the loading process is complete. Depending on the criticality of the content and how long it takes to load, the progress completion can be indicated using a [live region](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions), or by programmatically moving focus to the top of the new content.
-### Props
+## Props
+
+### ProgressLinear
+
+
+
+### ProgressRadial
diff --git a/examples/ProgressIndicators.main.css b/examples/ProgressIndicators.main.css
new file mode 100644
index 00000000000..2a54a8f32ee
--- /dev/null
+++ b/examples/ProgressIndicators.main.css
@@ -0,0 +1,6 @@
+.demo-container {
+ display: flex;
+ flex-direction: column;
+ width: 200px;
+ gap: var(--iui-size-s);
+}
diff --git a/examples/ProgressIndicators.main.jsx b/examples/ProgressIndicators.main.jsx
new file mode 100644
index 00000000000..be78467a292
--- /dev/null
+++ b/examples/ProgressIndicators.main.jsx
@@ -0,0 +1,15 @@
+/*---------------------------------------------------------------------------------------------
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
+ * See LICENSE.md in the project root for license terms and full copyright notice.
+ *--------------------------------------------------------------------------------------------*/
+import * as React from 'react';
+import { ProgressLinear, ProgressRadial } from '@itwin/itwinui-react';
+
+export default () => {
+ return (
+
+
+
+
+ );
+};
diff --git a/examples/ProgressIndicators.value.css b/examples/ProgressIndicators.value.css
new file mode 100644
index 00000000000..2a54a8f32ee
--- /dev/null
+++ b/examples/ProgressIndicators.value.css
@@ -0,0 +1,6 @@
+.demo-container {
+ display: flex;
+ flex-direction: column;
+ width: 200px;
+ gap: var(--iui-size-s);
+}
diff --git a/examples/ProgressIndicators.value.jsx b/examples/ProgressIndicators.value.jsx
new file mode 100644
index 00000000000..9a5f36a3483
--- /dev/null
+++ b/examples/ProgressIndicators.value.jsx
@@ -0,0 +1,15 @@
+/*---------------------------------------------------------------------------------------------
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
+ * See LICENSE.md in the project root for license terms and full copyright notice.
+ *--------------------------------------------------------------------------------------------*/
+import * as React from 'react';
+import { ProgressLinear, ProgressRadial } from '@itwin/itwinui-react';
+
+export default () => {
+ return (
+
+
+
+
+ );
+};
diff --git a/examples/ProgressLinear.isAnimated.css b/examples/ProgressLinear.isAnimated.css
new file mode 100644
index 00000000000..47d2d6fe27b
--- /dev/null
+++ b/examples/ProgressLinear.isAnimated.css
@@ -0,0 +1,6 @@
+.demo-container {
+ width: 200px;
+ display: flex;
+ flex-direction: column;
+ gap: var(--iui-size-xs);
+}
diff --git a/examples/ProgressLinear.isAnimated.jsx b/examples/ProgressLinear.isAnimated.jsx
new file mode 100644
index 00000000000..3aa00a300b0
--- /dev/null
+++ b/examples/ProgressLinear.isAnimated.jsx
@@ -0,0 +1,37 @@
+/*---------------------------------------------------------------------------------------------
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
+ * See LICENSE.md in the project root for license terms and full copyright notice.
+ *--------------------------------------------------------------------------------------------*/
+import * as React from 'react';
+import { Button, ProgressLinear } from '@itwin/itwinui-react';
+
+export default () => {
+ const [value, setValue] = React.useState(0);
+ const isDone = value === 100;
+
+ React.useEffect(() => {
+ let interval;
+
+ if (!isDone) {
+ interval = setInterval(
+ () => setValue((prevValue) => prevValue + 20),
+ 1500,
+ );
+ }
+
+ return () => clearInterval(interval);
+ }, [isDone]);
+
+ return (
+