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
  f92a339d_5aaa_f054_66bf_db9df1142a93["SidebarGroupLabel()"]
  403a7802_5284_b88e_6793_ca6286c4d07c["sidebar.tsx"]
  f92a339d_5aaa_f054_66bf_db9df1142a93 -->|defined in| 403a7802_5284_b88e_6793_ca6286c4d07c
  style f92a339d_5aaa_f054_66bf_db9df1142a93 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/radix/ui-rtl/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}
    />
  )
}

Subdomains

Frequently Asked Questions

What does SidebarGroupLabel() do?
SidebarGroupLabel() is a function in the ui codebase, defined in apps/v4/examples/radix/ui-rtl/sidebar.tsx.
Where is SidebarGroupLabel() defined?
SidebarGroupLabel() is defined in apps/v4/examples/radix/ui-rtl/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