ui

Progress

Displays the status of a task that takes a long time. Built with Base UI and Tailwind CSS. Copy-paste ready.

API Reference

Installation

Usage

Note: If you render children inside Progress, you must also include ProgressTrack and ProgressIndicator inside it. Without them, the bar will not display. When no children are provided, a default track and indicator are rendered for you.

Examples

With Formatted Value

Displays the numeric percentage alongside the bar using ProgressValue with a custom formatter.

With Status

Shows a dynamic status label (e.g. "Uploading…", "Complete") that updates as the value crosses defined thresholds.

With slider

Pairs a Progress bar with a Slider so users can manually scrub the value and see both components respond simultaneously.

Multi-step

Renders a segmented step indicator with labeled stages — each segment fills as the user advances through a multi-step flow.

Custom Colors

Overrides the indicator color based on the current value — green for healthy, amber for warning, red for critical.

Skills Meter

Six technology skills each displayed with a labeled progress bar and a percentage readout — a static competency or proficiency display.

File Upload Queue

Four files with live simulated upload progress. Each row shows a file icon, status icon (spinner / check / error), and a progress bar whose color and icon change based on upload state.

Budget Breakdown

A monthly budget card with six spending categories. When a category exceeds its limit the indicator flips to destructive red and a warning line appears below the bar.

API Usage Tiers

A thick progress bar with floating threshold markers at Free, Pro, and Team limits. A callout below the bar shows how many requests remain until the next tier is reached.

Survey Completion

A labeled bar with a "4 of 10" counter replacing the percentage — the natural format for multi-question surveys and quizzes.

Download with Speed

A simulated download bar with a filename header and an animated MB/s + "~Xs remaining" readout beneath, driven by setInterval.

Fundraiser Goal

A fundraising card with a red-tinted bar and raised/goal currency breakdown — indicator color overridden with className on ProgressIndicator.

Reading Progress

A 1px-tall bar pinned to the top of a scrollable article container that tracks scroll position via a useEffect scroll listener.

Build Pipeline

A progress bar paired with a per-stage checklist — CheckIcon for done, an animated CircleDotIcon for the active stage, and ClockIcon for pending ones.