Home / Function/ SidebarGroupAction() — ui Function Reference

SidebarGroupAction() — ui Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

deprecated/www/registry/new-york/ui/sidebar.tsx lines 465–482

>(({ className, asChild = false, ...props }, ref) => {
  const Comp = asChild ? Slot : "button"

  return (
    <Comp
      ref={ref}
      data-sidebar="group-action"
      className={cn(
        "absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
        // Increases the hit area of the button on mobile.
        "after:absolute after:-inset-2 after:md:hidden",
        "group-data-[collapsible=icon]:hidden",
        className
      )}
      {...props}
    />
  )
})

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free