Progress
Displays the status of a task that takes a long time.
Loading...
Loading code...
Installation
Usage
import {
Progress,
ProgressLabel,
ProgressValue,
} from "@/components/ui/progress"<Progress value={40} />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 Label and Value
Loading...
Loading code...
With Formatted Value
Loading...
Loading code...
Comparing with Radix / shadcn
If you’re already familiar with Radix UI and shadcn/ui, this guide highlights the small differences and similarities so you can get started with ui/topia quickly.
Quick Checklist
- Prefer
ProgressLabelandProgressValuefor label/value instead of inline elements - If you render children inside
Progress, you must includeProgressTrackandProgressIndicator(otherwise the bar will not display). Without children, a default bar is rendered for you - If you used
asChild, switch to therenderprop
Additional Notes
Base UI introduces separate parts — ProgressLabel, ProgressValue, ProgressTrack, and ProgressIndicator — which you compose inside Progress for greater flexibility.