Uploading assets18%
Storage used72%
Connecting
Playground
Change the props and copy the code. The controls come from the component's TypeScript types.
Uploading64%
Props
size
import { Progress } from "@/components/ui/progress";<Progress value={64} label="Uploading" />Installation
$ pnpm dlx shadcn@latest add @synccn/progressFirst time in this project? Connect synccn with one command.
Usage
import { Progress } from "@/components/ui/progress";<Progress value={64} label="Uploading" />API reference
Generated from the component's TypeScript types, so it always matches the code.
PropTypeDescription
- value
numberDefault
0Current value.
- max
numberDefault
100Value that fills the bar.
- indeterminate
booleanDefault
falseAnimated bar for unknown progress.
- size
"sm" | "default" | "lg"Default
"default"Bar thickness.
- label
React.ReactNodeLabel above the bar, with the percentage.
- className
stringExtra classes for the root element.
Dependencies
Read from the component's imports when the site builds. The CLI installs all of these for you.
Helpers
- lib/utilscn (merges class names)
npm packages
- clsx for cn()
- tailwind-merge for cn()
Accessibility
- role progressbar with aria-valuenow, min and max. Pass label to name it.
From the source
Read from this component's code when the site builds, so it can't drift.
- ARIA roles: progressbar
- ARIA attributes: aria-label, aria-valuemax, aria-valuemin, aria-valuenow
More feedback
AlertInline message in five tones, with action and dismiss.ToastStacked notifications with actions, promises and hover to expand.Progress RingCircular progress with content in the middle.SkeletonShimmering placeholder while content loads.SpinnerEight-bar loading indicator.LoadersSix loading indicators: dots, bars, pulse, ring, orbit and typing.