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

Relationship Graph

Source Code

apps/v4/examples/base/ui/sidebar.tsx lines 416–438

function SidebarGroupAction({
  className,
  render,
  ...props
}: useRender.ComponentProps<"button"> & React.ComponentProps<"button">) {
  return useRender({
    defaultTagName: "button",
    props: mergeProps<"button">(
      {
        className: cn(
          "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 w-5 rounded-md p-0 focus-visible:ring-2 [&>svg]:size-4 flex aspect-square items-center justify-center outline-hidden transition-transform [&>svg]:shrink-0 after:absolute after:-inset-2 md:after:hidden group-data-[collapsible=icon]:hidden",
          className
        ),
      },
      props
    ),
    render,
    state: {
      slot: "sidebar-group-action",
      sidebar: "group-action",
    },
  })
}

Subdomains

Frequently Asked Questions

What does SidebarGroupAction() do?
SidebarGroupAction() is a function in the ui codebase, defined in apps/v4/examples/base/ui/sidebar.tsx.
Where is SidebarGroupAction() defined?
SidebarGroupAction() is defined in apps/v4/examples/base/ui/sidebar.tsx at line 416.

Analyze Your Own Codebase

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

Try Supermodel Free