Progress Bar

Progress bars are used to show the status of an ongoing operation.

Progress bars are used to show the status of an ongoing operation.

Use the label attribute to label the progress bar and tell assistive devices how to announce it.

Use the default slot to show a value.

50%

The indeterminate attribute can be used to inform the user that the operation is pending, but its status cannot currently be determined. In this state, value is ignored and the label, if present, will not be shown.

import '@ods/components/web.progress-bar';

Note: You only need to import a web component once in your code, as it registers itself globally when defined, allowing you to use it anywhere within your application without needing to re-import it each time you want to use the component.

Slots

NameDescription
(default)A label to show inside the progress indicator.

Properties

Please note, both DOM properties and HTML attributes are shown in the table below. Unless otherwise specified, the property and attribute names are identical.

Property/AttributeReflectsTypeDefault
value
number0
indeterminate
booleanfalse
label
string''

Parts

NameDescription
baseThe component's base wrapper.
indicatorThe progress bar's indicator.
labelThe progress bar's label.

Search