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.

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.

0%
25%

Dashboard progress bar

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

10%
0%

Customized content

Use default slot to add customized content.

Content
80%Progressing

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%

API

Attributes

NameDescriptionTypeDefault
percentage requiredpercentagenumber0
typethe type of progress barenumline
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 barenum
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/dashboard type shape at the end pathenumround
formatcustom text formatFunction
striped 2.3.4stripe over the progress bar's colorbooleanfalse
striped-flow 2.3.4get the stripes to flowbooleanfalse

Slots

NameDescriptionType
defaultCustomized contentobject

Source

ComponentStyleDocs

Contributors