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
  19c6784f_5c05_ce5e_fb8e_6fad0cdb70a1["progress.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  19c6784f_5c05_ce5e_fb8e_6fad0cdb70a1 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  500b7188_c952_aeaa_dfc3_c66c77196e2e["react-progress"]
  19c6784f_5c05_ce5e_fb8e_6fad0cdb70a1 --> 500b7188_c952_aeaa_dfc3_c66c77196e2e
  79081a1f_55a3_945a_fb8c_d53d6d3eab81["utils"]
  19c6784f_5c05_ce5e_fb8e_6fad0cdb70a1 --> 79081a1f_55a3_945a_fb8c_d53d6d3eab81
  style 19c6784f_5c05_ce5e_fb8e_6fad0cdb70a1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import * as React from "react"
import * as ProgressPrimitive from "@radix-ui/react-progress"

import { cn } from "@/lib/utils"

const Progress = React.forwardRef<
  React.ElementRef<typeof ProgressPrimitive.Root>,
  React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root>
>(({ className, value, ...props }, ref) => (
  <ProgressPrimitive.Root
    ref={ref}
    className={cn(
      "relative h-4 w-full overflow-hidden rounded-full bg-secondary",
      className
    )}
    {...props}
  >
    <ProgressPrimitive.Indicator
      className="h-full w-full flex-1 bg-primary transition-all"
      style={{ transform: `translateX(-${100 - (value || 0)}%)` }}
    />
  </ProgressPrimitive.Root>
))
Progress.displayName = ProgressPrimitive.Root.displayName

export { Progress }

Subdomains

Functions

Dependencies

  • react
  • react-progress
  • 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): react, react-progress, utils.
Where is progress.tsx in the architecture?
progress.tsx is located at deprecated/www/registry/default/ui/progress.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/default/ui).

Analyze Your Own Codebase

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

Try Supermodel Free