Components
Progress

Progress

Import

import { VKProgress } from "@vivakits/react-components";

Percent

The fill of the progress is specified by the percent prop. Defaults to 0.

0%
30%
0%
50%

Stroke Width

The thickness of the fill can be specified by the strokeWidth prop. Defaults to 16.

30%
50%

Fill Color

The color of the fill can be specified by the strokeColor prop which can be a solid color or a gradient in case of LineProgress only. To have a gradient in CircleProgress fill, gradientColor prop can be used instead with two stop colors.

30%
30%
50%
50%

Rounded

The cap of the fill can be set to rounded by the rounded prop.

30%
30%
50%
50%

Show Info

The info of the progress can be set to be shown by the showInfo prop.

30%
50%

Info

The content of the info can be set by the info prop.

🚀
🚀

Info position

The position of the info can be set to be inside or outside of the LineProgress with infoPos prop. Default position is middle.

30%
50%
100%

Custom Classes

You can customize the Alert using the containerClassName and fillClassName prop.

30%

Vertical

The LineProgress can be made vertical using the vertical prop.

🔥

Rotation

The CircleProgress can increase clockwise or counter-clockwise depending on the rotation prop. Defaults to clockwise.

30%
30%

Status

The Progress can have active, fail and success status set by status prop. Default is active.

30%
✔️
30%
✔️

API Reference

AttributeTypeDescriptionDefault
percentnumberSpecifies the progress of the component in percentage.0
strokeWidthnumberSpecifies the thickness of the fill.16
strokeColorstringSpecifies the color of the fill.-
gradientColor[string, string]Defines the stop colors if gradient is used in CircleProgress.-
roundedbooleanSpecifies whether the fill cap is rounded or not.true
showInfobooleanSpecifies whether the text/icon is displayed or not.true
infoReactNodeDefines the content of the info.-
infoPosstartmiddleendSpecifies the position of the info.middle
containerClassNamestringSpecifies the visual appearance of the container.-
fillClassNamestringSpecifies the visual appearance of the fill.-
verticalbooleanSpecifies whether the LineProgress is horizontal or vertical.false
rotationcwccwSpecifies whether the CircleProgress is increasing clockwise or counter-clockwise..cw
statussuccessfailactiveSpecifies the status of the progress with predefined styles.active