Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Progress examples · With Label

Multi-line Label Progress for React

A progress bar at 35 percent under a title, a subtitle and the percentage.

Framework
UI library

A progress bar with a title, a subtitle for the current step and the percentage, for setups and multi-stage jobs where people want to know what is running now.

Preview

Preview width

Installation

Sign in to get your install command
Free with an account. It carries your token, so the CLI installs everything in one go.

FAQ

What is above the bar?

A column with ProgressLabel, Project Setup, over a muted span, Installing dependencies. ProgressValue sits at the end of the same row, and the full-width track wraps below.

Which line names the bar?

ProgressLabel does: the bar is announced as Project Setup.

The subtitle is plain text.

How do I have the subtitle read too?

The demo doesn't connect it. Give the span an id and pass it to Progress as aria-describedby.

What does ProgressValue show?

It has no children, so it prints the value, 35, as a percent.

How do I change the step text as work goes on?

Render the subtitle from your own state, such as Installing dependencies, then Building. The demo's text is fixed.

How do I update the 35?

Change value as the work advances. This demo passes a fixed 35.