SidebarGroupLabel() — ui Function Reference
Architecture documentation for the SidebarGroupLabel() function in sidebar.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD c1960fb0_32a5_3893_7d63_62f7ccf81ce7["SidebarGroupLabel()"] c3d1b2a8_7455_5144_ec35_453b78980e06["sidebar.tsx"] c1960fb0_32a5_3893_7d63_62f7ccf81ce7 -->|defined in| c3d1b2a8_7455_5144_ec35_453b78980e06 style c1960fb0_32a5_3893_7d63_62f7ccf81ce7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/radix/ui/sidebar.tsx lines 391–409
function SidebarGroupLabel({
className,
asChild = false,
...props
}: React.ComponentProps<"div"> & { asChild?: boolean }) {
const Comp = asChild ? Slot.Root : "div"
return (
<Comp
data-slot="sidebar-group-label"
data-sidebar="group-label"
className={cn(
"text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
className
)}
{...props}
/>
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does SidebarGroupLabel() do?
SidebarGroupLabel() is a function in the ui codebase, defined in apps/v4/examples/radix/ui/sidebar.tsx.
Where is SidebarGroupLabel() defined?
SidebarGroupLabel() is defined in apps/v4/examples/radix/ui/sidebar.tsx at line 391.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free