Messages
ProgressBar
How far along a task is, as a thin bar, with a value or indeterminate.
WAI-ARIA tested
Import
main.ts
import { ProgressBar } from '@vitral/vue';Determinate
Uploading photos
Label
`unit` follows the value and becomes its spoken text; `show-value` off hides it; the slot replaces it.
Copying files
No label
Indeterminate
Work of unknown length; no value is announced.
Connecting…
API
Read from packages/vue/src/components/ProgressBar/types.ts, so it says what the component actually accepts.
Props
| Name | Type | Description |
|---|---|---|
| value | number | 0–100. |
| mode | 'determinate' | 'indeterminate' | `'determinate'` (the default) or `'indeterminate'`, for work of unknown length. |
| showValue | boolean | Show the value beside the bar. Defaults to true. |
| unit | string | Follows the value in the label. Defaults to `'%'`. |
Plus pt, dt and unstyled from BaseProps, see pass-through and unstyled mode.
Slots
| Name | Slot props | Description |
|---|---|---|
| default | (props: { value: number }) | Replaces the value label. |