Skip to content

Progress Bar

Last updated 27 Oct 2026

NbProgressBar shows how far an operation has advanced against a known total, or an indeterminate animation while the total is still unknown. Follow it with a finished or error status so users get explicit closure.

Indeterminate ​

Omit value while the total amount of work is unknown and the bar sweeps continuously.

vue
<template>
  <NbProgressBar label="Preparing export" helper="Contacting server..." />
</template>

Status ​

finished and error fill the track, recolor the bar, and show a status icon next to the label. When status is error the helper text switches to the error style automatically.

vue
<template>
  <NbProgressBar
    label="Upload failed"
    helper="Connection lost, retry in 30s"
    status="error"
  />
</template>

Hidden label ​

When the row around the bar already says what it measures, a name beside it and a count after it, a visible label would say it twice. hide-label keeps label as the bar's accessible name and does not show it, the same as on NbSwitch. A bar with no name at all is announced as just "progress bar", so prefer this to leaving label out.

vue
<NbProgressBar
  :label="locale.name"
  hide-label
  size="sm"
  :value="approved"
  :max="total"
/>

Props ​

PropTypeDefaultDescription
valuenumberundefinedCurrent progress. Omit for an indeterminate bar
maxnumber100Upper bound the progress is measured against
labelstringundefinedLabel rendered above the track
helperstringundefinedHint below the bar, uses the error style on error status
size'md' | 'sm''md'Track thickness: md is 8px, sm is 4px
status'active' | 'finished' | 'error''active'Semantic state, finished/error fill the bar
hideLabelbooleanfalseKeep label as the accessible name without showing it

Accessibility ​

  • The track exposes role="progressbar" with aria-valuemin, aria-valuemax and aria-valuenow (omitted while indeterminate).
  • The label prop doubles as the aria-label of the progress bar, also when hideLabel hides it.
  • Status changes are also conveyed by the icon and helper text, not only by color.