SidebarGroupAction() — ui Function Reference
Architecture documentation for the SidebarGroupAction() function in sidebar.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 5bc0d503_1d21_ab53_7f66_28890380da8e["SidebarGroupAction()"] 403a7802_5284_b88e_6793_ca6286c4d07c["sidebar.tsx"] 5bc0d503_1d21_ab53_7f66_28890380da8e -->|defined in| 403a7802_5284_b88e_6793_ca6286c4d07c style 5bc0d503_1d21_ab53_7f66_28890380da8e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/radix/ui-rtl/sidebar.tsx lines 411–429
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 end-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform group-data-[collapsible=icon]:hidden after:absolute after:-inset-2 focus-visible:ring-2 md:after:hidden [&>svg]:size-4 [&>svg]:shrink-0",
className
)}
{...props}
/>
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does SidebarGroupAction() do?
SidebarGroupAction() is a function in the ui codebase, defined in apps/v4/examples/radix/ui-rtl/sidebar.tsx.
Where is SidebarGroupAction() defined?
SidebarGroupAction() is defined in apps/v4/examples/radix/ui-rtl/sidebar.tsx at line 411.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free