8.4k

Progress

Displays the status of a task that takes a long time.

API Reference

Installation

pnpm dlx shadcn@latest add https://coss.com/ui/r/progress.json

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

With Formatted Value

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 coss.com ui quickly.

Quick Checklist

  • Prefer ProgressLabel and ProgressValue for label/value instead of inline elements
  • If you render children inside Progress, you must include ProgressTrack and ProgressIndicator (otherwise the bar will not display). Without children, a default bar is rendered for you
  • If you used asChild, switch to the render prop

Additional Notes

Base UI introduces separate parts — ProgressLabel, ProgressValue, ProgressTrack, and ProgressIndicator — which you compose inside Progress for greater flexibility.

coss.com ui

Built by and for the team of Cal.com, Inc. — the leading commercial open source company (“coss”).