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 681ad481_9dea_f351_ff47_541ad123017e["sidebar-right.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] 681ad481_9dea_f351_ff47_541ad123017e --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 329de083_d855_b587_8519_9bd4634882a9["calendars"] 681ad481_9dea_f351_ff47_541ad123017e --> 329de083_d855_b587_8519_9bd4634882a9 893a9f35_3747_6910_eada_f98255037580["date-picker"] 681ad481_9dea_f351_ff47_541ad123017e --> 893a9f35_3747_6910_eada_f98255037580 34672c9b_2449_5b64_7201_24955c136e6c["nav-user"] 681ad481_9dea_f351_ff47_541ad123017e --> 34672c9b_2449_5b64_7201_24955c136e6c 1fee781a_1910_afaa_bb29_21305eb0ae61["sidebar"] 681ad481_9dea_f351_ff47_541ad123017e --> 1fee781a_1910_afaa_bb29_21305eb0ae61 de6fac54_74ca_6c25_8f8b_d1ba3287dbf2["icon-placeholder"] 681ad481_9dea_f351_ff47_541ad123017e --> de6fac54_74ca_6c25_8f8b_d1ba3287dbf2 style 681ad481_9dea_f351_ff47_541ad123017e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import { Calendars } from "@/registry/bases/radix/blocks/sidebar-15/components/calendars"
import { DatePicker } from "@/registry/bases/radix/blocks/sidebar-15/components/date-picker"
import { NavUser } from "@/registry/bases/radix/blocks/sidebar-15/components/nav-user"
import {
Sidebar,
SidebarContent,
SidebarFooter,
SidebarHeader,
SidebarMenu,
SidebarMenuButton,
SidebarMenuItem,
SidebarRail,
SidebarSeparator,
} from "@/registry/bases/radix/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, 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, icon-placeholder, nav-user, react, sidebar.
Where is sidebar-right.tsx in the architecture?
sidebar-right.tsx is located at apps/v4/registry/bases/radix/blocks/sidebar-15/components/sidebar-right.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/bases/radix/blocks/sidebar-15/components).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free