Skip to content
shadcn.io
shadcn.io is not affiliated with official shadcn/ui

Shadcn Progress for React and Tailwind

Displays task progress with a linear indicator.

Installation

bunx --bun shadcn@latest add https://kit.dev/r/progress.json

Usage

import { Progress } from "@/components/ui/progress";
<Progress value={50} />

Controlled

Use value and to control the progress bar.

Orientation

Use the orientation prop to orient the progress bar horizontally or vertically.

Horizontal

Vertical

Examples

With label

Use ProgressValue and FieldLabel to add a label to the progress bar.

Indeterminate

Use the indeterminate prop when the completion percentage is unknown.

API Reference

Progress

Root element of the progress bar.

PropTypeDefault
valuenumber | null-
defaultValuenumber-
onValueChange(details: ValueChangeDetails) => void-
indeterminatebooleanfalse
minnumber0
maxnumber100
orientation"horizontal" | "vertical""horizontal"
classNamestring-

For a complete list of props, see the Ark UI documentation.