Home / Function/ Progress() — ui Function Reference

Progress() — ui Function Reference

Architecture documentation for the Progress() function in progress.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  3a4af63e_993d_022b_d2fd_4043f6754123["Progress()"]
  bb3c7ff8_ba8b_6e95_b5a9_496e052ff9d9["progress.tsx"]
  3a4af63e_993d_022b_d2fd_4043f6754123 -->|defined in| bb3c7ff8_ba8b_6e95_b5a9_496e052ff9d9
  style 3a4af63e_993d_022b_d2fd_4043f6754123 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/radix/ui/progress.tsx lines 8–29

function Progress({
  className,
  value,
  ...props
}: React.ComponentProps<typeof ProgressPrimitive.Root>) {
  return (
    <ProgressPrimitive.Root
      data-slot="progress"
      className={cn(
        "cn-progress relative flex w-full items-center overflow-x-hidden",
        className
      )}
      {...props}
    >
      <ProgressPrimitive.Indicator
        data-slot="progress-indicator"
        className="cn-progress-indicator size-full flex-1 transition-all"
        style={{ transform: `translateX(-${100 - (value || 0)}%)` }}
      />
    </ProgressPrimitive.Root>
  )
}

Subdomains

Frequently Asked Questions

What does Progress() do?
Progress() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/ui/progress.tsx.
Where is Progress() defined?
Progress() is defined in apps/v4/registry/bases/radix/ui/progress.tsx at line 8.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free