This page as markdown: /progress.md · Index for agents: /llms.txt · Everything in one file: /llms-full.txt

Progress

Status: stable

Linear progress bar over Base UI Progress — value 0–100 drives the fill; omit value (or pass null) for an indeterminate, pulsing bar.

Keywords: progress, task progress, meter, loading

Usage

Use Progress to communicate determinate or indeterminate completion for a task or process.

Best practices

Anatomy

Part Required Description
ProgressTrack yes The background track that defines the range.
ProgressIndicator yes The filled or animated progress indicator.
ProgressLabel no A text label for the progress task.
ProgressValue no A readable value such as 45 percent.

Subcomponents

Name Type Description
ProgressTrack Base UI Track props + className The rail. Rendered automatically when Progress has no children; renders a ProgressIndicator child by default. Takes size (inherited from Progress) for its thickness — use that rather than a className height.
ProgressIndicator Base UI Indicator props + className The fill. Width is set by Base UI from the value; spans full width and pulses while indeterminate.
ProgressLabel Base UI Label props + className Accessible label; wires aria-labelledby on the Root.
ProgressValue Base UI Value props + className Formatted value readout. Accepts a render-function child for custom formatting.

Props

Name Type Default Description
value number | null null Current value between min and max. null (or omitted) renders the indeterminate state.
min number 0 The minimum value of the range.
max number 100 The maximum value of the range.
format Intl.NumberFormatOptions — Formatting options for ProgressValue (e.g. style: 'percent', or a currency).
getAriaValueText (formatted, value) => string — Returns a human-readable text alternative for aria-valuenow.
size "sm" | "md" | "lg" "md" Bar thickness, on the same three rails as Meter so the two match on one page. ProgressTrack inherits it.

Variants

Tokens used

secondary, primary, foreground, muted-foreground

Motion

Accessibility

Related

Examples

Determinate

import { Progress } from "@sableui/react"

<Progress value={64} aria-label="Upload" />

Indeterminate

import { Progress } from "@sableui/react"

<Progress aria-label="Preparing export" />

With label and value

import { Progress, ProgressLabel, ProgressTrack, ProgressValue } from "@sableui/react"

<Progress value={40}><div className="mb-2 flex flex-wrap items-center justify-between gap-x-3 gap-y-1"><ProgressLabel>Uploading</ProgressLabel><ProgressValue /></div><ProgressTrack /></Progress>