Progress Bar

A progress bar component visually communicates the status of an ongoing processes.

When to use

A progress bar should be used to visually indicate task completion, provide feedback during lengthy operations, guide users through multi-step processes, or display percentage metrics.

Anatomy

Alerts Anatomy

1. Label (required)

2. Assistive text

Assistive or contextual information about the process taking place.

3. Bar (required)

Bar indicates how much the process has progressed.

4. Track (required)

The area that the bar fills or moves across.

5. Value

A percentage, fraction, or number to indicate progress.

Examples

<div class="ucla-progress">
    <div class="ucla-progress__info">
        <label for="progress" class="ucla-progress__label">Label</label>
        <div class="ucla-progress__percent">100%</div>
    </div>
    <progress class="ucla-progress__bar" id="progress" max="100" value="70"></progress>
    <p class="ucla-progress__assistive">Assistive text goes here</p>
</div>