sidebar-right.tsx — ui Source File
Architecture documentation for sidebar-right.tsx, a tsx file in the ui codebase. 6 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR f9d30045_7100_c928_09d8_b5da32c66ec1["sidebar-right.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] f9d30045_7100_c928_09d8_b5da32c66ec1 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"] f9d30045_7100_c928_09d8_b5da32c66ec1 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3 e4f437d5_e0cc_b72c_b62c_358eb8e14280["calendars"] f9d30045_7100_c928_09d8_b5da32c66ec1 --> e4f437d5_e0cc_b72c_b62c_358eb8e14280 7f8de9a5_aacf_ef36_b00b_bc0ab31b595a["date-picker"] f9d30045_7100_c928_09d8_b5da32c66ec1 --> 7f8de9a5_aacf_ef36_b00b_bc0ab31b595a 529a34c4_841b_736d_9618_81b22fe97c74["nav-user"] f9d30045_7100_c928_09d8_b5da32c66ec1 --> 529a34c4_841b_736d_9618_81b22fe97c74 12632a83_ef01_5f03_4110_ed33d49893b7["sidebar"] f9d30045_7100_c928_09d8_b5da32c66ec1 --> 12632a83_ef01_5f03_4110_ed33d49893b7 style f9d30045_7100_c928_09d8_b5da32c66ec1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import * as React from "react"
import { Plus } from "lucide-react"
import { Calendars } from "@/registry/new-york-v4/blocks/sidebar-15/components/calendars"
import { DatePicker } from "@/registry/new-york-v4/blocks/sidebar-15/components/date-picker"
import { NavUser } from "@/registry/new-york-v4/blocks/sidebar-15/components/nav-user"
import {
Sidebar,
SidebarContent,
SidebarFooter,
SidebarHeader,
SidebarMenu,
SidebarMenuButton,
SidebarMenuItem,
SidebarRail,
SidebarSeparator,
} from "@/registry/new-york-v4/ui/sidebar"
// This is sample data.
const data = {
user: {
name: "shadcn",
email: "m@example.com",
avatar: "/avatars/shadcn.jpg",
},
calendars: [
{
name: "My Calendars",
items: ["Personal", "Work", "Family"],
},
{
name: "Favorites",
items: ["Holidays", "Birthdays"],
},
{
name: "Other",
items: ["Travel", "Reminders", "Deadlines"],
},
],
}
export function SidebarRight({
...props
}: React.ComponentProps<typeof Sidebar>) {
return (
<Sidebar
collapsible="none"
className="sticky top-0 hidden h-svh border-l lg:flex"
{...props}
>
<SidebarHeader className="border-sidebar-border h-16 border-b">
<NavUser user={data.user} />
</SidebarHeader>
<SidebarContent>
<DatePicker />
<SidebarSeparator className="mx-0" />
<Calendars calendars={data.calendars} />
</SidebarContent>
<SidebarFooter>
<SidebarMenu>
<SidebarMenuItem>
<SidebarMenuButton>
<Plus />
<span>New Calendar</span>
</SidebarMenuButton>
</SidebarMenuItem>
</SidebarMenu>
</SidebarFooter>
</Sidebar>
)
}
Domain
Subdomains
Functions
Dependencies
- calendars
- date-picker
- lucide-react
- nav-user
- react
- sidebar
Source
Frequently Asked Questions
What does sidebar-right.tsx do?
sidebar-right.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-right.tsx?
sidebar-right.tsx defines 1 function(s): SidebarRight.
What does sidebar-right.tsx depend on?
sidebar-right.tsx imports 6 module(s): calendars, date-picker, lucide-react, nav-user, react, sidebar.
Where is sidebar-right.tsx in the architecture?
sidebar-right.tsx is located at apps/v4/registry/new-york-v4/blocks/sidebar-15/components/sidebar-right.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/new-york-v4/blocks/sidebar-15/components).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free