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 38e6b27e_f903_5ebd_962a_4fdacbd27132["sidebar-right.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] 38e6b27e_f903_5ebd_962a_4fdacbd27132 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 c3edae1e_f287_9bbb_e4bf_379a5e3b588e["calendars"] 38e6b27e_f903_5ebd_962a_4fdacbd27132 --> c3edae1e_f287_9bbb_e4bf_379a5e3b588e 42181eef_6612_ddeb_4638_7eb4d3db5e14["date-picker"] 38e6b27e_f903_5ebd_962a_4fdacbd27132 --> 42181eef_6612_ddeb_4638_7eb4d3db5e14 a0a27479_7fd3_2887_81f5_889566dbdb84["nav-user"] 38e6b27e_f903_5ebd_962a_4fdacbd27132 --> a0a27479_7fd3_2887_81f5_889566dbdb84 f1a5091e_9f4f_a457_6394_4e05eb42bbf1["sidebar"] 38e6b27e_f903_5ebd_962a_4fdacbd27132 --> f1a5091e_9f4f_a457_6394_4e05eb42bbf1 de6fac54_74ca_6c25_8f8b_d1ba3287dbf2["icon-placeholder"] 38e6b27e_f903_5ebd_962a_4fdacbd27132 --> de6fac54_74ca_6c25_8f8b_d1ba3287dbf2 style 38e6b27e_f903_5ebd_962a_4fdacbd27132 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import { Calendars } from "@/registry/bases/base/blocks/sidebar-15/components/calendars"
import { DatePicker } from "@/registry/bases/base/blocks/sidebar-15/components/date-picker"
import { NavUser } from "@/registry/bases/base/blocks/sidebar-15/components/nav-user"
import {
Sidebar,
SidebarContent,
SidebarFooter,
SidebarHeader,
SidebarMenu,
SidebarMenuButton,
SidebarMenuItem,
SidebarRail,
SidebarSeparator,
} from "@/registry/bases/base/ui/sidebar"
import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"
// 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>
<IconPlaceholder
lucide="PlusIcon"
tabler="IconPlus"
hugeicons="PlusSignIcon"
phosphor="PlusIcon"
remixicon="RiAddLine"
/>
<span>New Calendar</span>
</SidebarMenuButton>
</SidebarMenuItem>
</SidebarMenu>
</SidebarFooter>
</Sidebar>
)
}
Domain
Subdomains
Functions
Dependencies
- calendars
- date-picker
- icon-placeholder
- 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, UIPrimitives 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, icon-placeholder, nav-user, react, sidebar.
Where is sidebar-right.tsx in the architecture?
sidebar-right.tsx is located at apps/v4/registry/bases/base/blocks/sidebar-15/components/sidebar-right.tsx (domain: ComponentRegistry, subdomain: UIPrimitives, directory: apps/v4/registry/bases/base/blocks/sidebar-15/components).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free