MCPcopy Create free account
hub / github.com/code-with-antonio/nodebase / Progress

Function Progress

src/components/ui/progress.tsx:8–29  ·  view source on GitHub ↗
({
  className,
  value,
  ...props
}: React.ComponentProps<typeof ProgressPrimitive.Root>)

Source from the content-addressed store, hash-verified

6import { cn } from "@/lib/utils"
7
8function 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
31export { Progress }

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected