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

docs-sidebar.tsx — ui Source File

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

File tsx Internationalization RTLLayout 7 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  16f69caa_93db_954b_7137_16afd6196c41["docs-sidebar.tsx"]
  ba3d44f3_7b34_f9cc_6283_44817785c0df["link"]
  16f69caa_93db_954b_7137_16afd6196c41 --> ba3d44f3_7b34_f9cc_6283_44817785c0df
  f5b0b1d9_de2f_9c31_0bcd_4adbd07581cb["navigation"]
  16f69caa_93db_954b_7137_16afd6196c41 --> f5b0b1d9_de2f_9c31_0bcd_4adbd07581cb
  c11ea4a2_eb97_176c_a69b_b73675a6f645["docs"]
  16f69caa_93db_954b_7137_16afd6196c41 --> c11ea4a2_eb97_176c_a69b_b73675a6f645
  0b91b178_fd79_28c3_eac6_9b444a138149["flags"]
  16f69caa_93db_954b_7137_16afd6196c41 --> 0b91b178_fd79_28c3_eac6_9b444a138149
  858e60a8_4233_8866_a501_707e973859f9["page-tree"]
  16f69caa_93db_954b_7137_16afd6196c41 --> 858e60a8_4233_8866_a501_707e973859f9
  b5f7acc2_8550_f8f0_0425_a71c6d434acd["source"]
  16f69caa_93db_954b_7137_16afd6196c41 --> b5f7acc2_8550_f8f0_0425_a71c6d434acd
  12632a83_ef01_5f03_4110_ed33d49893b7["sidebar"]
  16f69caa_93db_954b_7137_16afd6196c41 --> 12632a83_ef01_5f03_4110_ed33d49893b7
  style 16f69caa_93db_954b_7137_16afd6196c41 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import Link from "next/link"
import { usePathname } from "next/navigation"

import { PAGES_NEW } from "@/lib/docs"
import { showMcpDocs } from "@/lib/flags"
import { getCurrentBase, getPagesFromFolder } from "@/lib/page-tree"
import type { source } from "@/lib/source"
import {
  Sidebar,
  SidebarContent,
  SidebarGroup,
  SidebarGroupContent,
  SidebarGroupLabel,
  SidebarMenu,
  SidebarMenuButton,
  SidebarMenuItem,
} from "@/registry/new-york-v4/ui/sidebar"

const TOP_LEVEL_SECTIONS = [
  { name: "Introduction", href: "/docs" },
  {
    name: "Components",
    href: "/docs/components",
  },
  {
    name: "Installation",
    href: "/docs/installation",
  },
  {
    name: "Directory",
    href: "/docs/directory",
  },
  {
    name: "RTL",
    href: "/docs/rtl",
  },
  {
    name: "MCP Server",
    href: "/docs/mcp",
  },
  {
    name: "Registry",
    href: "/docs/registry",
  },
  {
    name: "Forms",
    href: "/docs/forms",
  },
  {
    name: "Changelog",
    href: "/docs/changelog",
  },
]
const EXCLUDED_SECTIONS = ["installation", "dark-mode", "changelog", "rtl"]
const EXCLUDED_PAGES = ["/docs", "/docs/changelog", "/docs/rtl"]

export function DocsSidebar({
  tree,
// ... (108 more lines)

Subdomains

Functions

Dependencies

  • docs
  • flags
  • link
  • navigation
  • page-tree
  • sidebar
  • source

Frequently Asked Questions

What does docs-sidebar.tsx do?
docs-sidebar.tsx is a source file in the ui codebase, written in tsx. It belongs to the Internationalization domain, RTLLayout subdomain.
What functions are defined in docs-sidebar.tsx?
docs-sidebar.tsx defines 1 function(s): DocsSidebar.
What does docs-sidebar.tsx depend on?
docs-sidebar.tsx imports 7 module(s): docs, flags, link, navigation, page-tree, sidebar, source.
Where is docs-sidebar.tsx in the architecture?
docs-sidebar.tsx is located at apps/v4/components/docs-sidebar.tsx (domain: Internationalization, subdomain: RTLLayout, directory: apps/v4/components).

Analyze Your Own Codebase

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

Try Supermodel Free