Home / File/ sidebar-right.tsx — ui Source File

sidebar-right.tsx — ui Source File

Architecture documentation for sidebar-right.tsx, a tsx file in the ui codebase. 6 imports, 0 dependents.

File tsx ComponentRegistry ChartRegistry 6 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  a0b6cd21_053b_e82f_b095_728438a81fcb["sidebar-right.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  a0b6cd21_053b_e82f_b095_728438a81fcb --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  a0b6cd21_053b_e82f_b095_728438a81fcb --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  22e22525_08d5_d5fb_53c4_23af0d5b5c68["calendars"]
  a0b6cd21_053b_e82f_b095_728438a81fcb --> 22e22525_08d5_d5fb_53c4_23af0d5b5c68
  3874a3a7_8730_296a_eae1_febd3fc8d9a4["date-picker"]
  a0b6cd21_053b_e82f_b095_728438a81fcb --> 3874a3a7_8730_296a_eae1_febd3fc8d9a4
  2e957d2d_422a_46a5_2866_ba778d531908["nav-user"]
  a0b6cd21_053b_e82f_b095_728438a81fcb --> 2e957d2d_422a_46a5_2866_ba778d531908
  742f06fb_c1e8_243e_1fc4_8b1cf11704c2["sidebar"]
  a0b6cd21_053b_e82f_b095_728438a81fcb --> 742f06fb_c1e8_243e_1fc4_8b1cf11704c2
  style a0b6cd21_053b_e82f_b095_728438a81fcb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import * as React from "react"
import { Plus } from "lucide-react"

import { Calendars } from "@/registry/default/blocks/sidebar-15/components/calendars"
import { DatePicker } from "@/registry/default/blocks/sidebar-15/components/date-picker"
import { NavUser } from "@/registry/default/blocks/sidebar-15/components/nav-user"
import {
  Sidebar,
  SidebarContent,
  SidebarFooter,
  SidebarHeader,
  SidebarMenu,
  SidebarMenuButton,
  SidebarMenuItem,
  SidebarRail,
  SidebarSeparator,
} from "@/registry/default/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 hidden lg:flex top-0 h-svh border-l"
      {...props}
    >
      <SidebarHeader className="h-16 border-b border-sidebar-border">
        <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>
  )
}

Subdomains

Functions

Dependencies

  • calendars
  • date-picker
  • lucide-react
  • nav-user
  • react
  • sidebar

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 deprecated/www/registry/default/blocks/sidebar-15/components/sidebar-right.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/default/blocks/sidebar-15/components).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free