Home / File/ component-wrapper.tsx — ui Source File

component-wrapper.tsx — ui Source File

Architecture documentation for component-wrapper.tsx, a tsx file in the ui codebase. 1 imports, 0 dependents.

File tsx ComponentRegistry ChartRegistry 1 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  613e6d20_7e8e_d5d5_ab27_72128c99cee6["component-wrapper.tsx"]
  388bdfe2_9bdf_d785_f943_9f13b5518a0b["utils"]
  613e6d20_7e8e_d5d5_ab27_72128c99cee6 --> 388bdfe2_9bdf_d785_f943_9f13b5518a0b
  style 613e6d20_7e8e_d5d5_ab27_72128c99cee6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { cn } from "@/registry/new-york/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>
  )
}

Subdomains

Functions

Dependencies

  • utils

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/new-york/internal/sink/components/component-wrapper.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/new-york/internal/sink/components).

Analyze Your Own Codebase

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

Try Supermodel Free