Add indeterminate mode

This commit is contained in:
pk
2026-08-05 22:18:55 +02:00
parent e5e1d8d1a1
commit 54d8ecbfd7
3 changed files with 42 additions and 7 deletions
+12 -1
View File
@@ -18,4 +18,15 @@ npm i @tp/tp-progress-bar
| Property | Type | Description |
| -------- | ---- | ----------- |
| `progress` | `Number` | The current progress of the progress bar.
| `progress` | `Number` | The current progress of the progress bar (0-100). Ignored when `indeterminate` is set. |
| `indeterminate` | `Boolean` | When set, shows an animated indicator that travels back and forth continuously. Use for operations whose progress can't be determined. |
## Usage
```html
<!-- Determinate -->
<tp-progress-bar progress="50"></tp-progress-bar>
<!-- Indeterminate -->
<tp-progress-bar indeterminate></tp-progress-bar>
```