SidebarMenuSubButton() — ui Function Reference
Architecture documentation for the SidebarMenuSubButton() function in sidebar.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD ba26a232_36b9_1ff4_b1b4_a14f18c819b3["SidebarMenuSubButton()"] cef4f47f_83d5_1ca2_1147_d3903d1ade07["sidebar.tsx"] ba26a232_36b9_1ff4_b1b4_a14f18c819b3 -->|defined in| cef4f47f_83d5_1ca2_1147_d3903d1ade07 style ba26a232_36b9_1ff4_b1b4_a14f18c819b3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/registry/default/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}
/>
)
})
Domain
Subdomains
Source
Frequently Asked Questions
What does SidebarMenuSubButton() do?
SidebarMenuSubButton() is a function in the ui codebase, defined in deprecated/www/registry/default/ui/sidebar.tsx.
Where is SidebarMenuSubButton() defined?
SidebarMenuSubButton() is defined in deprecated/www/registry/default/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