MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / SidebarGroupLabel

Function SidebarGroupLabel

packages/react/src/components/sidebar.tsx:374–393  ·  view source on GitHub ↗
({
  className,
  asChild = false,
  ...props
}: React.ComponentProps<"div"> & { asChild?: boolean })

Source from the content-addressed store, hash-verified

372}
373
374function SidebarGroupLabel({
375 className,
376 asChild = false,
377 ...props
378}: React.ComponentProps<"div"> & { asChild?: boolean }) {
379 const Comp = asChild ? Slot.Root : "div";
380
381 return (
382 <Comp
383 data-slot="sidebar-group-label"
384 data-sidebar="group-label"
385 className={cn(
386 "flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
387 "group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
388 className,
389 )}
390 {...props}
391 />
392 );
393}
394
395function SidebarGroupAction({
396 className,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected