Atelier UI

Search components…

Search components…

Progress Bar

Determinate and indeterminate progress bar with label, percentage, sizes and animated stripes.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

ProgressBarProps

Also accepts all props of Omit<React.ComponentProps<"div">, "children">

PropTypeDefaultDescription
valuenumber | nullnullCurrent value. Omit (or pass `null`) for an indeterminate bar.
maxnumber100—
size"sm" | "md" | "lg""md"—
labelReact.ReactNode——
showValuebooleantrueShow the percentage next to the label. Ignored when indeterminate.
stripedbooleanfalseAnimated diagonal stripes on the fill.
barClassNamestring—Fill color classes, e.g. "bg-emerald-500".

Install

$ npx shadcn@latest add https://chromotion.dev/r/progress-bar.json

More like this