sidebar-controlled.tsx — ui Source File
Architecture documentation for sidebar-controlled.tsx, a tsx file in the ui codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR f463c14b_9cc1_53dc_1765_596c0666f2a6["sidebar-controlled.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] f463c14b_9cc1_53dc_1765_596c0666f2a6 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"] f463c14b_9cc1_53dc_1765_596c0666f2a6 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3 aa2f3ec6_f291_3763_88ec_65a3f5ad5939["button"] f463c14b_9cc1_53dc_1765_596c0666f2a6 --> aa2f3ec6_f291_3763_88ec_65a3f5ad5939 6ff5c02b_2b25_4633_4ccd_fd28f2f55862["sidebar"] f463c14b_9cc1_53dc_1765_596c0666f2a6 --> 6ff5c02b_2b25_4633_4ccd_fd28f2f55862 style f463c14b_9cc1_53dc_1765_596c0666f2a6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import {
Frame,
LifeBuoy,
Map,
PanelLeftClose,
PanelLeftOpen,
PieChart,
Send,
} from "lucide-react"
import { Button } from "@/registry/new-york/ui/button"
import {
Sidebar,
SidebarContent,
SidebarGroup,
SidebarGroupContent,
SidebarGroupLabel,
SidebarInset,
SidebarMenu,
SidebarMenuButton,
SidebarMenuItem,
SidebarProvider,
} from "@/registry/new-york/ui/sidebar"
const projects = [
{
name: "Design Engineering",
url: "#",
icon: Frame,
},
{
name: "Sales & Marketing",
url: "#",
icon: PieChart,
},
{
name: "Travel",
url: "#",
icon: Map,
},
{
name: "Support",
url: "#",
icon: LifeBuoy,
},
{
name: "Feedback",
url: "#",
icon: Send,
},
]
export default function AppSidebar() {
const [open, setOpen] = React.useState(true)
return (
<SidebarProvider open={open} onOpenChange={setOpen}>
<Sidebar>
<SidebarContent>
<SidebarGroup>
<SidebarGroupLabel>Projects</SidebarGroupLabel>
<SidebarGroupContent>
<SidebarMenu>
{projects.map((project) => (
<SidebarMenuItem key={project.name}>
<SidebarMenuButton asChild>
<a href={project.url}>
<project.icon />
<span>{project.name}</span>
</a>
</SidebarMenuButton>
</SidebarMenuItem>
))}
</SidebarMenu>
</SidebarGroupContent>
</SidebarGroup>
</SidebarContent>
</Sidebar>
<SidebarInset>
<header className="flex items-center h-12 px-4 justify-between">
<Button
onClick={() => setOpen((open) => !open)}
size="sm"
variant="ghost"
>
{open ? <PanelLeftClose /> : <PanelLeftOpen />}
<span>{open ? "Close" : "Open"} Sidebar</span>
</Button>
</header>
</SidebarInset>
</SidebarProvider>
)
}
Domain
Subdomains
Functions
Dependencies
- button
- lucide-react
- react
- sidebar
Source
Frequently Asked Questions
What does sidebar-controlled.tsx do?
sidebar-controlled.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 sidebar-controlled.tsx?
sidebar-controlled.tsx defines 1 function(s): AppSidebar.
What does sidebar-controlled.tsx depend on?
sidebar-controlled.tsx imports 4 module(s): button, lucide-react, react, sidebar.
Where is sidebar-controlled.tsx in the architecture?
sidebar-controlled.tsx is located at deprecated/www/registry/new-york/internal/sidebar-controlled.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/new-york/internal).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free