Progress

Progress is used to show the progress of current operation, and inform the user the current status.

Linear progress bar

Use percentage attribute to set the percentage. It's required and must be between 0-100. You can custom text format by setting format.

Internal percentage

In this case the percentage takes no additional space.

stroke-width attribute decides the width of progress bar, and use text-inside attribute to put description inside the progress bar.

Custom color

You can use color attr to set the progress bar color. it accepts color string, function, or array.

Circular progress bar

You can specify type attribute to circle to use circular progress bar, and use width attribute to change the size of circle.

Dashboard progress bar

You also can specify type attribute to dashboard to use dashboard progress bar.

Customized content

Use default slot to add customized content.

Indeterminate progress

Use indeterminate attribute to set indeterminate progress, with duration to control the animation duration.

Attributes

AttributeDescriptionTypeAccepted ValuesDefault
percentagepercentage, requirednumber0-1000
typethe type of progress barstringline / circle / dashboardline
stroke-widththe width of progress barnumber6
text-insidewhether to place the percentage inside progress bar, only works when type is 'line'booleanfalse
statusthe current status of progress barstringsuccess / exception / warning
indeterminateset indeterminate progressboolean-false
durationcontrol the animation duration of indeterminate progressnumber-3
colorbackground color of progress bar. Overrides status propstring/function/array''
widththe canvas width of circle progress barnumber126
show-textwhether to show percentagebooleantrue
stroke-linecapcircle/dashboard type shape at the end pathstringbutt / round / squareround
formatcustom text formatfunction(percentage)

Slots

NameDescription
defaultCustomized content, parameter is { percentage }
Last Updated:
Contributors: Tam Mai