Home / File/ menubar.tsx — ui Source File

menubar.tsx — ui Source File

Architecture documentation for menubar.tsx, a tsx file in the ui codebase. 4 imports, 0 dependents.

File tsx ComponentRegistry ChartRegistry 4 imports 16 functions

Entity Profile

Dependency Diagram

graph LR
  255de0b4_ce6e_a211_2c9c_c25d7ceab072["menubar.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  255de0b4_ce6e_a211_2c9c_c25d7ceab072 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  4a4eaea5_7041_f709_7c58_914e6a67db87["react-menubar"]
  255de0b4_ce6e_a211_2c9c_c25d7ceab072 --> 4a4eaea5_7041_f709_7c58_914e6a67db87
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  255de0b4_ce6e_a211_2c9c_c25d7ceab072 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  79081a1f_55a3_945a_fb8c_d53d6d3eab81["utils"]
  255de0b4_ce6e_a211_2c9c_c25d7ceab072 --> 79081a1f_55a3_945a_fb8c_d53d6d3eab81
  style 255de0b4_ce6e_a211_2c9c_c25d7ceab072 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import * as React from "react"
import * as MenubarPrimitive from "@radix-ui/react-menubar"
import { Check, ChevronRight, Circle } from "lucide-react"

import { cn } from "@/lib/utils"

function MenubarMenu({
  ...props
}: React.ComponentProps<typeof MenubarPrimitive.Menu>) {
  return <MenubarPrimitive.Menu {...props} />
}

function MenubarGroup({
  ...props
}: React.ComponentProps<typeof MenubarPrimitive.Group>) {
  return <MenubarPrimitive.Group {...props} />
}

function MenubarPortal({
  ...props
}: React.ComponentProps<typeof MenubarPrimitive.Portal>) {
  return <MenubarPrimitive.Portal {...props} />
}

function MenubarRadioGroup({
  ...props
}: React.ComponentProps<typeof MenubarPrimitive.RadioGroup>) {
  return <MenubarPrimitive.RadioGroup {...props} />
}

function MenubarSub({
  ...props
}: React.ComponentProps<typeof MenubarPrimitive.Sub>) {
  return <MenubarPrimitive.Sub data-slot="menubar-sub" {...props} />
}

const Menubar = React.forwardRef<
  React.ElementRef<typeof MenubarPrimitive.Root>,
  React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Root>
>(({ className, ...props }, ref) => (
  <MenubarPrimitive.Root
    ref={ref}
    className={cn(
      "flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm",
      className
    )}
    {...props}
  />
))
Menubar.displayName = MenubarPrimitive.Root.displayName

const MenubarTrigger = React.forwardRef<
  React.ElementRef<typeof MenubarPrimitive.Trigger>,
  React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Trigger>
>(({ className, ...props }, ref) => (
  <MenubarPrimitive.Trigger
    ref={ref}
    className={cn(
// ... (197 more lines)

Subdomains

Dependencies

  • lucide-react
  • react
  • react-menubar
  • utils

Frequently Asked Questions

What does menubar.tsx do?
menubar.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 menubar.tsx?
menubar.tsx defines 16 function(s): Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, and 6 more.
What does menubar.tsx depend on?
menubar.tsx imports 4 module(s): lucide-react, react, react-menubar, utils.
Where is menubar.tsx in the architecture?
menubar.tsx is located at deprecated/www/registry/new-york/ui/menubar.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/new-york/ui).

Analyze Your Own Codebase

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

Try Supermodel Free