example.tsx — ui Source File
Architecture documentation for example.tsx, a tsx file in the ui codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR c69f6043_6338_2749_44ed_ae6b81e7bd56["example.tsx"] ef4051f4_aeb7_8d0c_a726_0ba96ad80cf6["utils"] c69f6043_6338_2749_44ed_ae6b81e7bd56 --> ef4051f4_aeb7_8d0c_a726_0ba96ad80cf6 style c69f6043_6338_2749_44ed_ae6b81e7bd56 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { cn } from "@/registry/bases/radix/lib/utils"
function ExampleWrapper({ className, ...props }: React.ComponentProps<"div">) {
return (
<div className="bg-background w-full">
<div
data-slot="example-wrapper"
className={cn(
"mx-auto grid min-h-screen w-full max-w-5xl min-w-0 content-center items-start gap-8 p-4 pt-2 sm:gap-12 sm:p-6 md:grid-cols-2 md:gap-8 lg:p-12 2xl:max-w-6xl",
className
)}
{...props}
/>
</div>
)
}
function Example({
title,
children,
className,
containerClassName,
...props
}: React.ComponentProps<"div"> & {
title?: string
containerClassName?: string
}) {
return (
<div
data-slot="example"
className={cn(
"mx-auto flex w-full max-w-lg min-w-0 flex-col gap-1 self-stretch lg:max-w-none",
containerClassName
)}
{...props}
>
{title && (
<div className="text-muted-foreground px-1.5 py-2 text-xs font-medium">
{title}
</div>
)}
<div
data-slot="example-content"
className={cn(
"bg-background text-foreground flex min-w-0 flex-1 flex-col items-start gap-6 border border-dashed p-4 sm:p-6 *:[div:not([class*='w-'])]:w-full",
className
)}
>
{children}
</div>
</div>
)
}
export { ExampleWrapper, Example }
Domain
Subdomains
Functions
Dependencies
- utils
Source
Frequently Asked Questions
What does example.tsx do?
example.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 example.tsx?
example.tsx defines 2 function(s): Example, ExampleWrapper.
What does example.tsx depend on?
example.tsx imports 1 module(s): utils.
Where is example.tsx in the architecture?
example.tsx is located at apps/v4/registry/bases/radix/components/example.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/bases/radix/components).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free