progress
Displays an indicator showing the completion progress of a task, typically displayed as a progress bar.
Installation
npx @gentleduck/cli add progress
npx @gentleduck/cli add progress
Usage
import { Progress } from "@/components/ui/progress"import { Progress } from "@/components/ui/progress"<Progress value={33} /><Progress value={33} />API Reference
Progress
value(number, required): Progress value from0to100representing the completion percentage....props(Omit<React.HTMLProps<HTMLDivElement>, 'value'>): Other native div props.
Behavior:
- Renders a progress bar container with a colored inner bar representing progress.
- Uses
ariaattributes for accessibility (role="progressbar",aria-valuenow,aria-valuemin,aria-valuemax). - The inner bar's width is animated via CSS
transform: translateXfor smooth transitions. - The container is styled with rounded corners, overflow hidden, and background color for progress track.