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

Relationship Graph

Source Code

apps/v4/examples/base/ui-rtl/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-rtl/sidebar.tsx.
Where is SidebarGroupLabel() defined?
SidebarGroupLabel() is defined in apps/v4/examples/base/ui-rtl/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