Skip to content
Okaapiأوكابي
Framework for the code
Theme
Okaapi on GitHub

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.

Use it in Angular
import { ProgressComponent } from '@okaapi-ui/angular';

Known amount

Uploading invoice.pdf
Importing contacts
Angular
<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
Angular
<ui-progress label="Preparing the report" />

In Arabic

بنرفع الفاتورة
Angular
<ui-progress label="بنرفع الفاتورة" [value]="64" />

When to use something else

If you needUse
A level that is not work being done, such as storage usedMeter
Waiting with no idea how longSpinner
Steps the reader goes throughStepper

Inputs

NameTypeDefaultWhat it does
labelstring — Required. Names the bar.
valuenumber | null — How much is done. Leave it out when unknown.
maxnumber100The value when done.
valueTextstring — The amount in words; defaults to a percentage.
testIdstring — 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.