Chapter 10 Feedback
Progress
How far a long task has got, such as an upload. The native progress bar, named by its label, with the amount in words beside it. Without a value it shows a moving band: work is going on but its length is not known.
import { ProgressComponent } from '@okaapi-ui/angular';Known amount
Uploading invoice.pdf
Importing contacts
<ui-progress label="Uploading invoice.pdf" [value]="sent()" />
<ui-progress label="Importing contacts" [value]="3" [max]="5" valueText="3 of 5 files" />Unknown amount
Preparing the report
<ui-progress label="Preparing the report" />In Arabic
بنرفع الفاتورة
<ui-progress label="بنرفع الفاتورة" [value]="64" />When to use something else
Inputs
| Name | Type | Default | What it does |
|---|---|---|---|
label | string | — | Required. Names the bar. |
value | number | null | — | How much is done. Leave it out when unknown. |
max | number | 100 | The value when done. |
valueText | string | — | The amount in words; defaults to a percentage. |
testId | string | — | data-testid on the progress element. |
Keyboard and screen readers
- The native progress bar, named by its label, with the amount in words beside it.
- Without a value it shows a moving band: work is going on but its length is not known.