progress.tsx — ui Source File
Architecture documentation for progress.tsx, a tsx file in the ui codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 9c2ebc3c_9a44_3d59_2b85_49dfb15090eb["progress.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] 9c2ebc3c_9a44_3d59_2b85_49dfb15090eb --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 500b7188_c952_aeaa_dfc3_c66c77196e2e["react-progress"] 9c2ebc3c_9a44_3d59_2b85_49dfb15090eb --> 500b7188_c952_aeaa_dfc3_c66c77196e2e 79081a1f_55a3_945a_fb8c_d53d6d3eab81["utils"] 9c2ebc3c_9a44_3d59_2b85_49dfb15090eb --> 79081a1f_55a3_945a_fb8c_d53d6d3eab81 style 9c2ebc3c_9a44_3d59_2b85_49dfb15090eb 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-2 w-full overflow-hidden rounded-full bg-primary/20",
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 }
Domain
Subdomains
Functions
Dependencies
- react
- react-progress
- utils
Source
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/new-york/ui/progress.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/new-york/ui).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free