React Progress Bar
A modern, animated progress bar component built with Framer Motion and Tailwind CSS. It provides a visual representation of a task's completion status with smooth transitions and customizable styles.
Default
Gradient
30%30 / 100
Sizes
Variants
Installation
npx shadcn@latest add progress.json
Usage
Import the Progress component and provide a value between 0 and max (default 100).
Loading...
Variants
The progress bar supports several visual variants to match your UI's context.
Default
The standard primary progress bar.
Loading...
Gradient
A vibrant gradient variant using indigo, purple, and pink.
Loading...
Success
Used for completed tasks or positive progress.
Loading...
Warning
Used for tasks that require attention or are nearing a limit.
Loading...
Error
Used for failed tasks or critical states.
Loading...
Sizes
Available in three sizes: sm, md (default), and lg.
Loading...
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| value | number | 0 | The current progress value |
| max | number | 100 | The maximum value |
| variant | 'default' \ | 'gradient' \ | 'success' \ |
| size | 'sm' \ | 'md' \ | 'lg' |
| showValue | boolean | false | Whether to show the percentage and value labels |
| animated | boolean | — | Whether to animate width changes |