Skip to main content

Progress -Progress bar component

Effect demonstration

1. LineProgress default effect

<LineProgress value={70} />

2. LineProgress value text at the top effect

<LineProgress value={100} labelPosition="top" />

3. LineProgress Gradient color effect

<LineProgress value={87} color={['#FFD080', 'red']} showLabel labelPosition="top" />

4. LineProgress Modify width effect

<LineProgress value={87} strokeWidth={16} />

5. CircleProgress default effect

<CircleProgress value={80} />

6. CircleProgress does not display value text effect

<CircleProgress value={40} showLabel={false} />

7. CircleProgress Custom color effects

<CircleProgress value={50} color="red" bgColor="green" />

8. CircleProgress Gradient color effect

<CircleProgress value={70} strokeWidth={16} />

9. CircleProgress Modify width effect

<CircleProgress value={70} strokeWidth={16} />

API

LineProgress Attributes

PropertiesRequiredDescriptionTypeDefault Value
widthfalselengthnumber250
colorfalsecolorstring | [string, string]theme.colors.primary200
bgColorfalseBackground colorstringtheme.colors.gray200
strokeWidthfalseOuter ring widthnumber8
valuefalsevaluenumber100
showLabelfalseWhether to display the value textbooleantrue
labelPositionfalsevalue text positionright | topright
labelfalseCustom labelReactNode
showUnitfalseWhether to display the unitbooleantrue

CircleProgress Property

PropertiesRequiredDescriptionTypeDefault Value
widthfalselengthnumber150
colorfalsecolorstring | [string, string]theme.colors.primary200
bgColorfalseBackground colorstringtheme.colors.gray200
strokeWidthfalseOuter ring widthnumber10
innerWidthfalseinner ring widthnumber10
valuefalsevaluenumber0
showLabelfalseWhether to display the value textbooleantrue
labelfalseCustom labelReactNode
showUnitfalseWhether to display the unitbooleantrue