Progress Bar

<wa-progress-bar> Stable Since 2.0

Progress bars show how far along an ongoing operation is as a horizontal fill. Use them for file uploads, multi-step flows, or any task with measurable progress.

Examples

Link to This Section

Labels

Link to This Section

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

Custom Height

Link to This Section

Use the --track-height custom property to set the progress bar's height.

Showing Values

Link to This Section

Use the default slot to show a value.

Indeterminate

Link to This Section

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.

Importing

Link to This Section

If you're using the autoloader or a hosted project, components load on demand — no manual import needed. To cherry-pick a component manually, use one of the following snippets.

CDN npm Self-Hosted React

Import this component directly from the CDN:

import 'https://ka-f.webawesome.com/[email protected]/components/progress-bar/progress-bar.js';

After installing Web Awesome via npm, import this component:

import '@awesome.me/webawesome/dist/components/progress-bar/progress-bar.js';

If you're self-hosting Web Awesome, import this component from your server:

import './webawesome/dist/components/progress-bar/progress-bar.js';

To import this component for React 18 or below, use the following code:

import WaProgressBar from '@awesome.me/webawesome/dist/react/progress-bar/index.js';

Slots

Link to This Section

Learn more about using slots.

Attributes & Properties

Link to This Section

Learn more about attributes and properties.

CSS custom properties

Link to This Section

Learn more about CSS custom properties.

CSS parts

Link to This Section

Learn more about CSS parts.

Need a hand? Report a bug Ask for help
    No results