Use a progress bar to show how far along an operation is, like a file upload, an import or a transcription. Set value when the operation reports how far along it is. Set indeterminate while it runs without one.
DtProgressBar draws only the track and the fill. It has no slots: put a label or value beside it and connect them with aria-labelledby. See Value readout.
value whenever the operation reports how far along it is.indeterminate, then set value on the same bar when the first value arrives.aria-labelledby or aria-label, like "Uploading recording.mp3".critical, warning and positive with text or an icon that says the same thing.indeterminate until real values arrive.gap or padding.| DtProgressBar | DtProgressCircle | DtLoader | |
|---|---|---|---|
| Shows | One operation's progress, as a value or indeterminate | The same, in a small fixed space | That something is loading, with no value |
| Size | Fills its container's width | 12px to 48px | 12px to 48px; takes the text color |
| Switches to a value | Yes, in place | Yes, in place | No |
| Role | progressbar | progressbar | img, named "loading" |
| Typical place | Upload row, import dialog, page region | Attachment thumbnail, file list row | Button, small component, overlay |
Use an indeterminate DtProgressBar or DtProgressCircle when:
Use DtLoader when:
loading prop shows one for you.Don't:
indeterminate and set value on the same component instead, so it doesn't jump or remount.Use a progress bar when the indicator can span its container, like an upload row, a card or a dialog. Use a progress circle in a small fixed space, like over a thumbnail or beside a file name in a dense list. Don't show both for the same operation.
DtProgressBar can look like a DtSlider, but it does the opposite job. DtSlider is an input: people set the value with a focusable thumb (role="slider"). DtProgressBar is output: the app reports how far an operation has got, and the bar isn't focusable (role="progressbar"). Choose by who controls the value, and don't style one to look like the other.
value takes a number from 0 to 100.
<dt-progress-bar :value="0" aria-label="Upload progress" /> <dt-progress-bar :value="25" aria-label="Upload progress" /> <dt-progress-bar :value="50" aria-label="Upload progress" /> <dt-progress-bar :value="75" aria-label="Upload progress" /> <dt-progress-bar :value="100" aria-label="Upload progress" />
Set indeterminate while an operation runs but can't report a value yet. A segment runs between the ends of the track and back for as long as the bar is shown, narrow at each end and widest through the middle, and aria-valuenow is left out. When indeterminate turns off, the same bar switches to the value. See Indeterminate, then determinate.
<dt-progress-bar indeterminate aria-label="Importing contacts" />kind sets the filled progress color over the same track. Use default unless the bar needs to carry meaning.
default: Most progress, like an upload or an import.positive: The operation finished. Set it when the value reaches 100.warning: The operation is still running but needs attention, like a slow connection or a retry.critical: The operation failed, like an upload that errored.info: Progress that sits beside the main task, like a background sync.brand: Progress that's the focus of a Dialpad-branded moment, like setup or onboarding.ai: Work an AI feature is doing, like generating a summary or transcribing a call.<dt-progress-bar :value="66" aria-label="Upload progress" /> <dt-progress-bar kind="brand" :value="66" aria-label="Upload progress" /> <dt-progress-bar kind="critical" :value="66" aria-label="Upload progress" /> <dt-progress-bar kind="positive" :value="66" aria-label="Upload progress" /> <dt-progress-bar kind="warning" :value="66" aria-label="Upload progress" /> <dt-progress-bar kind="info" :value="66" aria-label="Upload progress" /> <dt-progress-bar kind="ai" :value="66" aria-label="Upload progress" />
size sets the bar's thickness: 100 (2px), 200 (4px, the default), 300 (8px) and 400 (12px). The minimum dot, the gap before 100% and the indeterminate segment all scale with it. These numbers don't line up with DtProgressCircle's sizes, which set a diameter on the icon scale.
<dt-progress-bar size="100" :value="40" aria-label="Upload progress" /> <dt-progress-bar size="200" :value="40" aria-label="Upload progress" /> <dt-progress-bar size="300" :value="40" aria-label="Upload progress" /> <dt-progress-bar size="400" :value="40" aria-label="Upload progress" />
Any value above 0 shows at least a dot as wide as the bar is thick, so a small value never disappears. Any value below 100 leaves a dot of track at the end, so the bar only looks full at exactly 100.
Values outside 0–100 log a warning in development and are clamped, including aria-valuenow.
<dt-progress-bar :value="-10" aria-label="Upload progress" /> <dt-progress-bar :value="1" aria-label="Upload progress" /> <dt-progress-bar :value="99" aria-label="Upload progress" /> <dt-progress-bar :value="100" aria-label="Upload progress" /> <dt-progress-bar :value="110" aria-label="Upload progress" />
In a right-to-left layout, the fill grows from the inline-start edge (aka right in RTL), and the indeterminate segment's motion is mirrored.
<dt-stack dir="rtl" gap="200" class="d-w100p"> <dt-progress-bar :value="40" aria-label="Upload progress" /> <dt-progress-bar indeterminate aria-label="Importing contacts" /> </dt-stack>
Start indeterminate until the first progress event arrives, then switch over in place. At 100%, set kind="positive". A polite status region outside the bar announces the result, because the bar won't.
This example uses this Vue setup:
import { computed, ref } from 'vue';
const uploaded = ref(null); // null until the first progress event
const uploadDone = computed(() => uploaded.value === 100);
// In your upload's progress handler: uploaded.value = Math.floor(event.loaded / event.total * 100);
<dt-stack gap="50" class="d-w100p"> <dt-progress-bar :indeterminate="uploaded === null" :value="uploaded ?? 0" :kind="uploadDone ? 'positive' : 'default'" aria-label="Uploading recording.mp3" /> <div role="status" class="d-vi-visible-sr">{{ uploadDone ? 'Upload complete' : '' }}</div> </dt-stack>
DtProgressBar doesn't draw its value. Render the readout from the same number you pass to value, so the two always agree.
The value beside the bar. The bar takes the room the value leaves.
<dt-stack direction="row" gap="150" align="center" class="d-w100p"> <dt-progress-bar :value="40" aria-label="Uploading recording.mp3" class="d-fl-grow1" /> <dt-text tone="tertiary" numeric>40%</dt-text> </dt-stack>
A label above, and the value at the end. The visible label names the bar through aria-labelledby.
<dt-stack gap="50" class="d-w100p"> <dt-stack direction="row" gap="200" justify="space-between" align="baseline"> <dt-text variant="label-md" tone="secondary" id="report-upload-label">quarterly-report.pdf</dt-text> <dt-text tone="tertiary" numeric>40%</dt-text> </dt-stack> <dt-progress-bar :value="40" aria-labelledby="report-upload-label" /> </dt-stack>
A readout that isn't a percentage. aria-valuetext replaces the announced percentage with the same words people see.
<dt-stack gap="50" class="d-w100p"> <dt-stack direction="row" gap="200" justify="space-between" align="baseline"> <dt-text variant="label-md" tone="secondary" id="files-upload-label">Uploading files</dt-text> <dt-text tone="tertiary" numeric>3 of 10 files</dt-text> </dt-stack> <dt-progress-bar :value="30" aria-labelledby="files-upload-label" aria-valuetext="3 of 10 files" /> </dt-stack>
Set :rounded="false" when the bar runs edge to edge, like along the top of a card. The track, the fill and the indeterminate segment get square ends.
When a bar stands for a whole card loading, set aria-busy="true" on the card and point the card's aria-describedby at the bar. When loading finishes, remove aria-busy and the bar.
<dt-box inline-size="100p" border-width="100" border-color="subtle" aria-busy="true" aria-describedby="contacts-import-progress"> <dt-progress-bar id="contacts-import-progress" :rounded="false" indeterminate aria-labelledby="contacts-card-title" /> <dt-box padding="200"> <dt-text as="p" align="center" id="contacts-card-title" variant="headline-sm">Importing contacts</dt-text> </dt-box> </dt-box>
role="progressbar" with aria-valuemin="0", aria-valuemax="100" and aria-valuenow set to value. The minimum dot and the end gap are visual only; aria-valuenow reports the real value.aria-labelledby when a visible label exists, and aria-label otherwise. Name the operation, like "Uploading recording.mp3", not the value: screen readers announce the value on their own. In development, the console logs a message when neither is set.aria-valuetext with the same words as the visible readout, like "3 of 10 files".indeterminate, aria-valuenow is left out, so assistive technology reports the progress as unknown.role="status" region. Don't announce every value.aria-busy="true" on the region and point its aria-describedby at the bar. See Docked to a container's edge.GrayText outline and the fill uses Highlight.value or a text status (WCAG 2.2.2).critical, warning and positive show status through color alone. Pair them with text or an icon (WCAG 1.4.1).import { DtProgressBar } from '@dialpad/dialtone-vue';
Name
|
Default
|
Type
|
|---|---|---|
ariaLabel | string Accessible label read by screen readers. Use aria-labelledby instead when a visible label exists. | |
indeterminate | false |
"true"
|
"false"
Shows a looping segment instead of a value, and omits aria-valuenow. |
kind | 'default' |
"default"
|
"brand"
|
"critical"
|
"positive"
|
"warning"
|
"info"
|
"ai"
The color variant of the progress bar. |
rounded | true |
"true"
|
"false"
Whether the bar's ends are rounded. |
size | 200 |
"100"
|
"200"
|
"300"
|
"400"
Thickness of the bar |
value | 0 | number Current progress value (0–100). Out-of-range values warn and are clamped.
Ignored while indeterminate. |
Class
|
Applies to
|
Description
|
|---|
Progress Bar documentation last updated Tuesday, December 1, 2026