JGuang

Progress

Progress · Arco Design

Preview
npm install @arco-design/web-react@2.66.18

Progress

Give users feedback on the current running tasks, which is mostly used in scenes that run for a period of time, effectively reducing the anxiety of users in waiting.

Install

npm install @arco-design/web-react@2.66.18

Import @arco-design/web-react/dist/css/arco.css at the entry and set the locale with ConfigProvider. React 19 projects must also import @arco-design/web-react/es/_util/react-19-adapter first, or imperative APIs such as Message and Modal cannot render.

Examples

  • Basic: A simple progress bar.
  • status: You can set the status of the progress. If showText is false, the percentage text will not be displayed.
  • Circular progress bar: A circular progress bar.
  • Mini progress bar: A mini progress bar.
  • Size: There are four sizes available: min, small, default, large.
  • Animation: Display animation effects. Only work when type is 'line'.
  • linear gradient: linear-gradient progress bar.
  • steps: Steps progress will be displayed if you set steps property.
  • trail color: You can use 'trailColor' to set the color of the remaining progress bar.

Examples come from the official Arco Design repository (MIT) at the commit published as npm 2.66.18. Some use online images or upload endpoints; network requests are disabled in previews.

API

Progress

PropertyDescriptionTypeDefaultValueVersion
animationWhether show animation, Only available when type="line"boolean--
bufferWhether the Progress show buffer. Only available when type=lineboolean--
showTextWhether display textbooleantrue-
percentpercentnumber (Required)0-
stepsShow step progressnumber-2.10.0
strokeWidthThe stroke width of Progressnumber--
trailColorThe rest of progress bar color.string--
sizeThe size of Progress'small' | 'default' | 'mini' | 'large'default-
statusProgress status.'success' | 'error' | 'normal' | 'warning'-2.16.0
typeThe type of Progress'line' | 'circle'line-
bufferColorBuffer colorstring | object--
classNameAdditional css classstring | string[]--
colorProgress color, priority is higher than statusstring | { [key: string]: string }-2.10.0
styleAdditional styleCSSProperties--
widthThe Progress width. The circle type Progress only supports the number type widthstring | number--
formatTextProgress text function(percent: number) => ReactNode--