Home / Function/ SidebarMenuSubButton() — ui Function Reference

SidebarMenuSubButton() — ui Function Reference

Architecture documentation for the SidebarMenuSubButton() function in sidebar.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  79d8bd42_8bd8_e3f1_37c8_6093d7b03c82["SidebarMenuSubButton()"]
  9d6532a9_426f_ea68_5d06_31eaecadb210["sidebar.tsx"]
  79d8bd42_8bd8_e3f1_37c8_6093d7b03c82 -->|defined in| 9d6532a9_426f_ea68_5d06_31eaecadb210
  style 79d8bd42_8bd8_e3f1_37c8_6093d7b03c82 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/registry/new-york/ui/sidebar.tsx lines 725–745

>(({ asChild = false, size = "md", isActive, className, ...props }, ref) => {
  const Comp = asChild ? Slot : "a"

  return (
    <Comp
      ref={ref}
      data-sidebar="menu-sub-button"
      data-size={size}
      data-active={isActive}
      className={cn(
        "flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground",
        "data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",
        size === "sm" && "text-xs",
        size === "md" && "text-sm",
        "group-data-[collapsible=icon]:hidden",
        className
      )}
      {...props}
    />
  )
})

Subdomains

Frequently Asked Questions

What does SidebarMenuSubButton() do?
SidebarMenuSubButton() is a function in the ui codebase, defined in deprecated/www/registry/new-york/ui/sidebar.tsx.
Where is SidebarMenuSubButton() defined?
SidebarMenuSubButton() is defined in deprecated/www/registry/new-york/ui/sidebar.tsx at line 725.

Analyze Your Own Codebase

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

Try Supermodel Free