component-wrapper.tsx — ui Source File
Architecture documentation for component-wrapper.tsx, a tsx file in the ui codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR c6c5f4a3_bcb3_e551_37ec_a4b1c18a78a1["component-wrapper.tsx"] fa33de9d_1503_ccb3_215b_d382edac4a09["utils"] c6c5f4a3_bcb3_e551_37ec_a4b1c18a78a1 --> fa33de9d_1503_ccb3_215b_d382edac4a09 style c6c5f4a3_bcb3_e551_37ec_a4b1c18a78a1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { cn } from "@/registry/default/lib/utils"
export function ComponentWrapper({
className,
name,
children,
...props
}: React.ComponentPropsWithoutRef<"div"> & { name: string }) {
return (
<div
className={cn("flex w-full flex-col rounded-lg border", className)}
{...props}
>
<div className="border-b px-4 py-3">
<div className="text-sm font-medium">{name}</div>
</div>
<div className="flex flex-1 flex-col items-center justify-center gap-2 p-4 [&>div]:max-w-full">
{children}
</div>
</div>
)
}
Domain
Subdomains
Functions
Dependencies
- utils
Source
Frequently Asked Questions
What does component-wrapper.tsx do?
component-wrapper.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 component-wrapper.tsx?
component-wrapper.tsx defines 1 function(s): ComponentWrapper.
What does component-wrapper.tsx depend on?
component-wrapper.tsx imports 1 module(s): utils.
Where is component-wrapper.tsx in the architecture?
component-wrapper.tsx is located at deprecated/www/registry/default/internal/sink/components/component-wrapper.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/default/internal/sink/components).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free