Home / Function/ SidebarGroupLabel() — ui Function Reference

SidebarGroupLabel() — ui Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  fb6a33f2_4ebc_33b3_1191_dcd11f4efd5e["SidebarGroupLabel()"]
  cef4f47f_83d5_1ca2_1147_d3903d1ade07["sidebar.tsx"]
  fb6a33f2_4ebc_33b3_1191_dcd11f4efd5e -->|defined in| cef4f47f_83d5_1ca2_1147_d3903d1ade07
  style fb6a33f2_4ebc_33b3_1191_dcd11f4efd5e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/registry/default/ui/sidebar.tsx lines 444–459

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

  return (
    <Comp
      ref={ref}
      data-sidebar="group-label"
      className={cn(
        "flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
        "group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
        className
      )}
      {...props}
    />
  )
})

Subdomains

Frequently Asked Questions

What does SidebarGroupLabel() do?
SidebarGroupLabel() is a function in the ui codebase, defined in deprecated/www/registry/default/ui/sidebar.tsx.
Where is SidebarGroupLabel() defined?
SidebarGroupLabel() is defined in deprecated/www/registry/default/ui/sidebar.tsx at line 444.

Analyze Your Own Codebase

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

Try Supermodel Free