Function
Progress
({
className,
value,
...props
}: React.ComponentProps<typeof ProgressPrimitive.Root>)
Source from the content-addressed store, hash-verified
| 6 | import { cn } from "@/lib/utils" |
| 7 | |
| 8 | function Progress({ |
| 9 | className, |
| 10 | value, |
| 11 | ...props |
| 12 | }: React.ComponentProps<typeof ProgressPrimitive.Root>) { |
| 13 | return ( |
| 14 | <ProgressPrimitive.Root |
| 15 | data-slot="progress" |
| 16 | className={cn( |
| 17 | "bg-primary/20 relative h-2 w-full overflow-hidden rounded-full", |
| 18 | className |
| 19 | )} |
| 20 | {...props} |
| 21 | > |
| 22 | <ProgressPrimitive.Indicator |
| 23 | data-slot="progress-indicator" |
| 24 | className="bg-primary h-full w-full flex-1 transition-all" |
| 25 | style={{ transform: `translateX(-${100 - (value || 0)}%)` }} |
| 26 | /> |
| 27 | </ProgressPrimitive.Root> |
| 28 | ) |
| 29 | } |
| 30 | |
| 31 | export { Progress } |
Callers
nothing calls this directly
Tested by
no test coverage detected