Progress

Spring-animated progress bars and rings, with an indeterminate mode for unknown durations.

Uploading assets12%

Playground

Tweak the props, the preview and the code follow.

Props
60
<Progress value={60} />

Installation

npx @plumsydev/plum-ui add progress

Usage

import { Progress, ProgressRing } from "@/components/ui/progress"
<Progress value={42} />
<ProgressRing value={42} showValue />

Examples

Indeterminate

Pass value={null} when you can't measure progress.

Provisioning database…

Ring

ProgressRing for compact, circular progress.

64%

API Reference

Progress

PropTypeDefault
value

Current value. `null` or omitted renders the indeterminate animation.

number | null—
max

Maximum value.

number100
variant

Indicator color.

"default" | "brand" | "success" | "warning" | "destructive""default"
size

Track height.

"sm" | "default" | "lg""default"

ProgressRing

PropTypeDefault
value*

Current value.

number—
max

Maximum value.

number100
size

Diameter in pixels.

number48
strokeWidth

Ring thickness.

number4
showValue

Displays the animated percentage in the center.

booleanfalse