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

Relationship Graph

Source Code

apps/v4/examples/base/ui/sidebar.tsx lines 392–414

function SidebarGroupLabel({
  className,
  render,
  ...props
}: useRender.ComponentProps<"div"> & React.ComponentProps<"div">) {
  return useRender({
    defaultTagName: "div",
    props: mergeProps<"div">(
      {
        className: cn(
          "text-sidebar-foreground/70 ring-sidebar-ring h-8 rounded-md px-2 text-xs font-medium 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 flex shrink-0 items-center outline-hidden [&>svg]:shrink-0",
          className
        ),
      },
      props
    ),
    render,
    state: {
      slot: "sidebar-group-label",
      sidebar: "group-label",
    },
  })
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free