Progress
Usage
Pass an integer as the value
from 0
to 100
to the Progress bar component.
{ "message": "You should use slots with <ContentRenderer>", "value": {}, "excerpt": false, "tag": "div" }
Max
You may also set the max
number to set the maximum progress value, which will be relative to 100% percent.
{ "message": "You should use slots with <ContentRenderer>", "value": {}, "excerpt": false, "tag": "div" }
Steps
You can set an array of named steps in the max
prop to show the active step, at the same time it sets the maximum value.
The first step is always shown at 0%
, making the last 100%
.
{ "message": "You should use slots with <ContentRenderer>", "value": {}, "excerpt": false, "tag": "div" }
Progress indicator
You can add a numeric indicator, which will show the percent on top the progress track.
{ "message": "You should use slots with <ContentRenderer>", "value": {}, "excerpt": false, "tag": "div" }
Indeterminate
By not setting a value
, or setting it as null
, the progress bar becomes indeterminate. The bar will be animated as a carousel, but you can change it using the animation
prop for an inverse carousel, a swinging bar or an elastic bar.
{ "message": "You should use slots with <ContentRenderer>", "value": {}, "excerpt": false, "tag": "div" }
Size
Use the size
prop to change the size of the progress bar.
{ "message": "You should use slots with <ContentRenderer>", "value": {}, "excerpt": false, "tag": "div" }
Style
Use the color
prop to change the visual style of the Progress bar. The color
can be any color from the ui.colors
object.
{ "message": "You should use slots with <ContentRenderer>", "value": {}, "excerpt": false, "tag": "div" }
Slots
indicator
You can use the #indicator
slot to show a custom indicator above the progress bar. It receives the current percent
of progress.
{ "message": "You should use slots with <ContentRenderer>", "value": {}, "excerpt": false, "tag": "div" }
step-<index>
Use the #step-<index>
to alter the HTML being shown for each step.
{ "message": "You should use slots with <ContentRenderer>", "value": {}, "excerpt": false, "tag": "div" }
Props
config.default.size
null
config.default.color
100
{}
config.default.animation
false
Config
{ "message": "You should use slots with <ContentRenderer>", "value": {}, "excerpt": false, "tag": "div" }