Progress

A Progress loader show the progression of an operation flow in visual way.

Progress Bar

Progress in progress bar was controlled by percent prop.

Circle

Alternatively, we can display the Progress in circle by setting variant to 'circle'

Colors

We can apply custom color to the progress bar, available colors option based on tailwind theme.colors.

Size

Adjusting progress size via size prop for line progress or width prop for circle progress.

CustomInfo

We can insert any custom content via customInfo/code>.

Dynamic

Example of dynamic progress.

API

Progress
PropDescriptionTypeDefault
customColorClassCustom color class for progress barstring-
customInfoCustom contentstring | ReactNode-
gapDegreeThe gap degree of circle progress (only applicable when variant="circle")number0
gapPositionGap postion of circle progress (only applicable when variant="circle")'top' | 'right' | 'bottom' | 'left' 'top'
percentThe current value of progressnumber0
showInfoWhether to display progress infobooleantrue
sizeSize of progress bar (only applicable when variant="line")'sm' | 'md''md'
strokeLinecapStyle of the progress linecap (only applicable when variant="circle")'round' | 'square''round'
strokeWidthWidth of the circular progress (only applicable when variant="circle")number6
trailClassCss class for progress trailstring-
variantProgress variants'line' | 'circle''line'
widthDetermine the size of circular progress (only applicable when variant="circle")number | string'line'