shadcn.io is not affiliated with official shadcn/ui
Progress examples · With Label
With Percentage Progress for React
A progress bar at 65 percent with a label and the percentage above it.
Framework
UI library
A progress bar with a label on the left and the exact percentage on the right, for uploads and installs where people want the number.
Preview
Installation
Sign in to get your install command
Free with an account. It carries your token, so the CLI installs everything in one go.
FAQ
How do the label and number sit above the bar?
ProgressLabel and ProgressValue are children of Progress. The value style has ml-auto, which pushes the number to the end of the row, and the full-width track wraps below. gap-2 is the space.
Where does 65% come from?
ProgressValue has no children, so it prints the value as a percent. Nothing in the demo writes 65% by hand.
Related
- With Count ProgressA progress bar for 7 of 10 tasks
- Multi-line Label ProgressA progress bar at 35 percent under a
- With Label Above ProgressA progress bar at 45 percent with an
- Half ProgressA progress bar at 50 percent, filled to
- Success ProgressA progress bar at 70 percent in the
- With Label Below ProgressA progress bar at 80 percent with an