import { useState } from 'react'; import { Progress, Button, Stack, StackItem } from '@patternfly/react-core'; export const ProgressWithOnlyIncreasing: React.FunctionComponent = () => { const [currentValue, setCurrentValue] = useState(0); const onProgressUpdate = (nextValue) => { if (nextValue > currentValue) { setCurrentValue(nextValue); } }; return ( {' '}

{`Progress value is ${currentValue}%.`}
); };