@atlaskit/progress-bar
Version:
A progress bar communicates the status of a system process.
26 lines (25 loc) • 732 B
JavaScript
import React from 'react';
import ProgressBar from './progress-bar';
/**
* __Success progress bar__
*
* A success progress bar indicates the completion of a process.
*
* - [Examples](https://atlassian.design/components/progress-bar/success-progress-bar/examples)
* - [Code](https://atlassian.design/components/progress-bar/success-progress-bar/code)
*/
const SuccessProgressBar = ({
ariaLabel,
isIndeterminate = false,
testId,
value = 0
}) => {
return /*#__PURE__*/React.createElement(ProgressBar, {
appearance: value < 1 || isIndeterminate ? 'default' : 'success',
value: value,
isIndeterminate: isIndeterminate,
ariaLabel: ariaLabel,
testId: testId
});
};
export default SuccessProgressBar;