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
  f4cb12cf_08ec_ce25_b16a_76a6b5fdd8d3["SidebarGroupAction()"]
  0dd28c0a_4131_40f2_8cf0_e0611d33faf6["sidebar.tsx"]
  f4cb12cf_08ec_ce25_b16a_76a6b5fdd8d3 -->|defined in| 0dd28c0a_4131_40f2_8cf0_e0611d33faf6
  style f4cb12cf_08ec_ce25_b16a_76a6b5fdd8d3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/new-york-v4/ui/sidebar.tsx lines 417–438

function SidebarGroupAction({
  className,
  asChild = false,
  ...props
}: React.ComponentProps<"button"> & { asChild?: boolean }) {
  const Comp = asChild ? Slot.Root : "button"

  return (
    <Comp
      data-slot="sidebar-group-action"
      data-sidebar="group-action"
      className={cn(
        "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
        // Increases the hit area of the button on mobile.
        "after:absolute after:-inset-2 md:after: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 apps/v4/registry/new-york-v4/ui/sidebar.tsx.
Where is SidebarGroupAction() defined?
SidebarGroupAction() is defined in apps/v4/registry/new-york-v4/ui/sidebar.tsx at line 417.

Analyze Your Own Codebase

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

Try Supermodel Free