MCPcopy Create free account
hub / github.com/bytebase/dbhub / Progress

Function Progress

frontend/src/components/ui/progress.tsx:7–27  ·  view source on GitHub ↗
({
  className,
  children,
  ...props
}: ProgressPrimitive.Root.Props)

Source from the content-addressed store, hash-verified

5import { cn } from "@/lib/utils";
6
7function 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
29function ProgressLabel({ className, ...props }: ProgressPrimitive.Label.Props) {
30 return (

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected