Skip to content
HomeCobalt

Progress

Shows how much of a known amount is done, as a bar that fills toward its end.

Examples

Bars with a label, with and without the value.
Uploading
x
Importing holdings
x
In a cardAn export in a card ends in a toast with Download.
Holdings export
Harbour Large Cap Core, from the filing of Aug 29.

186 holdings

A spreadsheet with shares and weights.

States

Uploaded
x
CompleteA full bar at 100 percent.

Usage

Use it when

  • A known amount of work is being done, such as an upload, an import or the steps of a setup, and the user waits on it.

Use something else when

  • The amount of work is not known. Use Spinner instead.
  • The content's shape is known and it is on its way. Use Skeleton instead.
  • A button is waiting on its own press. Use StateButton instead.

Rules

General

Content

Avoid

Install

npx shadcn@latest add https://kaanarici.com/r/cobalt/progress.json
import { Progress, ProgressLabel, ProgressValue } from "@/components/cobalt/ui/progress"