Skip to content

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 is required and must be between 0-100. You can custom text format by setting format.

50%
full

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.

70%
100%
80%
50%

Custom color ​

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

20%
20%
20%
20%

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.

70%

Customized content ​

Use default slot to add customized content.

Content

Indeterminate progress ​

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

50%
full

Striped progress ​

Use striped attribute to set striped progress. You can use striped-flow to get the stripes to flow, with duration to control the animation duration.

50%

Sizes ​

you can use stroke width to set the width of the progress.

50%
50%
25%
25%

Progress API ​

Progress Attributes ​

NameDescriptionTypeDefault
percentagePercentage (required)Number0
typeThe type of progress barline circle dashboardline
stroke-widthThe width of progress barNumber8
text-insideWhether to place the percentage inside progress bar, only works when type is 'line'Booleanfalse
statusThe current status of progress barsuccess exception warning-
indeterminateSet indeterminate progressBooleanfalse
durationControl the animation duration of indeterminate progress or striped flow progressNumber3
colorBackground color of progress bar. Overrides status propString Function Array-
widthThe canvas width of circle progress barNumber126
show-textWhether to show percentageBooleantrue
stroke-linecapCircle type shape at the end pathbutt round squareround
formatCustom text formatFunction-
stripedStripe over the progress bar's colorBooleanfalse
striped-flowGet the stripes to flowBooleanfalse

Slots ​

NameDescription
defaultCustomized content, parameter is