About the shadcn/ui Progress Component

The Progress component is part of shadcn/ui — a collection of accessible, copy-paste React components built with Radix UI and Tailwind CSS. Install it with `npx shadcn@latest add progress` and copy it directly into your project.

Progress Component — Frequently Asked Questions

How do I animate a shadcn Progress bar to fill over time?

Use `useEffect` with an interval or `animate` from Framer Motion. Set `value` in state and increment it: `setProgress(prev => Math.min(prev + 10, 100))`.

How do I show an indeterminate loading state with Progress?

Set `value={null}` or omit the value prop. Add a CSS animation with `animate-pulse` or a custom shimmer keyframe to indicate unknown duration.

How do I add a label showing percentage inside the Progress bar?

Stack the progress bar with an absolutely positioned text element. Use `value` state to show `{value}%` inside the bar with `text-white` and center alignment.

Progress Component - shadcn/ui Examples | Shadcn Store