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 DocumentationAtlas ContentSourcing 3 imports 1 functions

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

"use client"

import * as React from "react"
import { cn } from "@/examples/radix/lib/utils"
import { Progress as ProgressPrimitive } from "radix-ui"

function Progress({
  className,
  value,
  ...props
}: React.ComponentProps<typeof ProgressPrimitive.Root>) {
  return (
    <ProgressPrimitive.Root
      data-slot="progress"
      className={cn(
        "bg-muted relative flex h-1 w-full items-center overflow-x-hidden rounded-full",
        className
      )}
      {...props}
    >
      <ProgressPrimitive.Indicator
        data-slot="progress-indicator"
        className="bg-primary 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 DocumentationAtlas domain, ContentSourcing 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/examples/radix/ui/progress.tsx (domain: DocumentationAtlas, subdomain: ContentSourcing, directory: apps/v4/examples/radix/ui).

Analyze Your Own Codebase

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

Try Supermodel Free