Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Progress examples · Basic

Quarter Progress for React

A progress bar at 25 percent, early in the task.

Framework
UI library

A progress bar a quarter of the way across. Early progress is still worth showing: it tells people the task is moving.

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 does the bar show?

value is 25 on the default range of 0 to 100, so the fill covers a quarter of the track. w-full max-w-md sets its width.

What is the accessible name?

aria-label on Progress, Upload progress. The demo has no visible label, so without it a screen reader would announce a bar with no name.

How do I update the 25?

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

Which colors does it use?

The fill is bg-primary and the track bg-muted, from the theme's progress styles. This demo adds no color class.

How do I make 25 mean step 1 of 4?

Pass value in the same units as the maximum. Set max on Progress: step 1 of 4 is max 4 and value 1.

How wide is the bar?

w-full max-w-md: as wide as its container, up to 28rem. This demo sets no height. Each theme style sets its own, from h-0.5 to h-3.