layout.tsx — ui Source File
Architecture documentation for layout.tsx, a tsx file in the ui codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR b10290cd_8956_8075_e18e_663d8b404c0a["layout.tsx"] 9c1a1e1b_87f8_29d5_c12d_e83869cf94e4["next"] b10290cd_8956_8075_e18e_663d8b404c0a --> 9c1a1e1b_87f8_29d5_c12d_e83869cf94e4 3eb36dd7_f51a_1431_02e2_7abafe315718["image"] b10290cd_8956_8075_e18e_663d8b404c0a --> 3eb36dd7_f51a_1431_02e2_7abafe315718 0ef877d6_b768_4222_bd20_50d875ac5e58["separator"] b10290cd_8956_8075_e18e_663d8b404c0a --> 0ef877d6_b768_4222_bd20_50d875ac5e58 06bcc540_8b8b_ac0f_6d47_feca5deb7cea["sidebar-nav"] b10290cd_8956_8075_e18e_663d8b404c0a --> 06bcc540_8b8b_ac0f_6d47_feca5deb7cea style b10290cd_8956_8075_e18e_663d8b404c0a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { Metadata } from "next"
import Image from "next/image"
import { Separator } from "@/registry/new-york/ui/separator"
import { SidebarNav } from "@/app/(app)/examples/forms/components/sidebar-nav"
export const metadata: Metadata = {
title: "Forms",
description: "Advanced form example using react-hook-form and Zod.",
}
const sidebarNavItems = [
{
title: "Profile",
href: "/examples/forms",
},
{
title: "Account",
href: "/examples/forms/account",
},
{
title: "Appearance",
href: "/examples/forms/appearance",
},
{
title: "Notifications",
href: "/examples/forms/notifications",
},
{
title: "Display",
href: "/examples/forms/display",
},
]
interface SettingsLayoutProps {
children: React.ReactNode
}
export default function SettingsLayout({ children }: SettingsLayoutProps) {
return (
<>
<div className="md:hidden">
<Image
src="/examples/forms-light.png"
width={1280}
height={791}
alt="Forms"
className="block dark:hidden"
/>
<Image
src="/examples/forms-dark.png"
width={1280}
height={791}
alt="Forms"
className="hidden dark:block"
/>
</div>
<div className="hidden space-y-6 p-10 pb-16 md:block">
<div className="space-y-0.5">
<h2 className="text-2xl font-bold tracking-tight">Settings</h2>
<p className="text-muted-foreground">
Manage your account settings and set e-mail preferences.
</p>
</div>
<Separator className="my-6" />
<div className="flex flex-col space-y-8 lg:flex-row lg:space-x-12 lg:space-y-0">
<aside className="-mx-4 lg:w-1/5">
<SidebarNav items={sidebarNavItems} />
</aside>
<div className="flex-1 lg:max-w-2xl">{children}</div>
</div>
</div>
</>
)
}
Domain
Subdomains
Functions
Types
Dependencies
- image
- next
- separator
- sidebar-nav
Source
Frequently Asked Questions
What does layout.tsx do?
layout.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, Styles subdomain.
What functions are defined in layout.tsx?
layout.tsx defines 1 function(s): SettingsLayout.
What does layout.tsx depend on?
layout.tsx imports 4 module(s): image, next, separator, sidebar-nav.
Where is layout.tsx in the architecture?
layout.tsx is located at deprecated/www/app/(app)/examples/forms/layout.tsx (domain: ComponentRegistry, subdomain: Styles, directory: deprecated/www/app/(app)/examples/forms).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free