UI Components
Progress
Animated progress bar with label, value display, four color variants, and three size options
Quick Preview
Uploading...72%
Installation
// Copy the Progress component fromsrc/components/ui/Progress.tsx
Usage
import { Progress } from '@/components/ui/Progress'// Basic<Progress value={50} />// With label and value display<Progressvalue={75}label="Profile completion"showValuevariant="success"/>
Examples
Color Variants
Default (primary)80%
Success65%
Warning45%
Danger30%
Sizes
Small60%
Medium60%
Large60%
Skill Bars โ Real-world Usage
TypeScript90%
React85%
Node.js70%
Python55%
Animated (Loading State)
Processing...
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
value* | number | - | Current progress value |
max | number | 100 | Maximum value |
variant | "default" | "success" | "warning" | "danger" | "default" | Color variant |
size | "sm" | "md" | "lg" | "md" | Bar height |
label | string | - | Label text shown above the bar |
showValue | boolean | - | Show percentage value above the bar |
animated | boolean | - | Adds pulse animation to the fill |
Features
- โFour color variants: default (primary), success, warning, danger
- โThree size options (sm, md, lg)
- โOptional label and percentage display
- โAnimated pulse option
- โClamps value between 0 and max
- โrole="progressbar" + aria attributes
- โServer Component