Home / File/ progress.tsx — ui Source File

progress.tsx — ui Source File

Architecture documentation for progress.tsx, a tsx file in the ui codebase. 3 imports, 0 dependents.

File tsx ComponentRegistry ChartRegistry 3 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  bb3c7ff8_ba8b_6e95_b5a9_496e052ff9d9["progress.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  bb3c7ff8_ba8b_6e95_b5a9_496e052ff9d9 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  9c463da6_747b_38dc_586b_cbb4873070b1["radix-ui"]
  bb3c7ff8_ba8b_6e95_b5a9_496e052ff9d9 --> 9c463da6_747b_38dc_586b_cbb4873070b1
  ef4051f4_aeb7_8d0c_a726_0ba96ad80cf6["utils"]
  bb3c7ff8_ba8b_6e95_b5a9_496e052ff9d9 --> ef4051f4_aeb7_8d0c_a726_0ba96ad80cf6
  style bb3c7ff8_ba8b_6e95_b5a9_496e052ff9d9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import * as React from "react"
import { Progress as ProgressPrimitive } from "radix-ui"

import { cn } from "@/registry/bases/radix/lib/utils"

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>
  )
}

export { Progress }

Subdomains

Functions

Dependencies

  • radix-ui
  • react
  • utils

Frequently Asked Questions

What does progress.tsx do?
progress.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, ChartRegistry subdomain.
What functions are defined in progress.tsx?
progress.tsx defines 1 function(s): Progress.
What does progress.tsx depend on?
progress.tsx imports 3 module(s): radix-ui, react, utils.
Where is progress.tsx in the architecture?
progress.tsx is located at apps/v4/registry/bases/radix/ui/progress.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/bases/radix/ui).

Analyze Your Own Codebase

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

Try Supermodel Free