shadcn.io is not affiliated with official shadcn/ui
Progress examples · With Label
With Label Below Progress for React
A progress bar at 80 percent with an encouraging Almost there! message below it.
Framework
UI library
A progress bar with a short message under it, here a nudge near the end of a profile setup. The message is plain text beside the bar; the bar's name is its aria-label.
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
Why is the message outside Progress?
Children of Progress render before the track, so anything inside it sits above the bar. To put text below, the demo wraps Progress and a p in a column with gap-2.
Is Almost there! the bar's name?
No. The message is ordinary text that follows the bar.
The name is aria-label on Progress, Profile completion.
How do I tie the message to the bar?
The demo leaves them separate.
Give the p an id and pass it to Progress as aria-describedby, so a screen reader reads it with the bar.
Related
- With Label Above ProgressA progress bar at 45 percent with an
- With Percentage ProgressA progress bar at 65 percent with a label
- Three Quarters ProgressA progress bar at 75 percent, close to
- Complete ProgressA progress bar at 100 percent, filled to
- Badge with Text (Standard)A default badge with a short label for a
- Success with Title AlertA success alert with only a title, for a