Progress Bar
Display task progress as a horizontal bar.
Usage guide
#Show how far an upload or processing task has progressed with a horizontal bar.
Tasks with known progress
Pass 0–100 to percent and update it as the task progresses. Control status and number visibility with status and hidePercent.
Tasks with unknown completion time
Use indeterminate to indicate ongoing work. Do not display an arbitrary percentage.
Examples
#Feature examples
#Choose a feature from 10 topics. Explore property settings, method calls, event results, and slot layouts through live examples and code.
No matching features.
API reference
#Hover over a name or focus it with the keyboard to see the code. On touch screens, tap the name.
<sy-progress-bar>
Properties
| Attribute / Property | Type | Default | Description |
|---|---|---|---|
boolean | false | Indicate ongoing work without showing a completion percentage. | |
number | 0 | Completed percentage of the total task, from 0 to 100. | |
'default' | 'error' | 'complete' | 'default' | Progress (default), error (error), or complete (complete) state. | |
'progress-left' | 'progress-center' | 'progress-right' | 'center' | 'left' | 'right' | 'center' | Place the value outside the bar or inside its filled portion. | |
boolean | false | Hide the progress percentage. | |
string | '' | JSON string containing cumulative end percentages and statuses. Example: [{"percent":35,"status":"complete"},{"percent":100}]. | |
string | '' | Progress tooltip title. |
Events
| Event | Detail | Description |
|---|---|---|
CustomEvent<{ percent: number }> | Fires whenever `percent` changes. `event.detail.percent` is the new value (0–100, post-clamp). |
Methods
| Method | Returns | Description |
|---|---|---|
Promise<number> | Return the current value or selected range. |