Function
Progress
({
className,
children,
...props
}: ProgressPrimitive.Root.Props)
Source from the content-addressed store, hash-verified
| 5 | import { cn } from "@/lib/utils"; |
| 6 | |
| 7 | function Progress({ |
| 8 | className, |
| 9 | children, |
| 10 | ...props |
| 11 | }: ProgressPrimitive.Root.Props) { |
| 12 | return ( |
| 13 | <ProgressPrimitive.Root |
| 14 | className={cn("flex w-full flex-col gap-2", className)} |
| 15 | data-slot="progress" |
| 16 | {...props} |
| 17 | > |
| 18 | {children ? ( |
| 19 | children |
| 20 | ) : ( |
| 21 | <ProgressTrack> |
| 22 | <ProgressIndicator /> |
| 23 | </ProgressTrack> |
| 24 | )} |
| 25 | </ProgressPrimitive.Root> |
| 26 | ); |
| 27 | } |
| 28 | |
| 29 | function ProgressLabel({ className, ...props }: ProgressPrimitive.Label.Props) { |
| 30 | return ( |
Callers
nothing calls this directly
Tested by
no test coverage detected