MCPcopy
hub / github.com/shadcn-ui/ui / SidebarGroupLabel

Function SidebarGroupLabel

apps/v4/registry/bases/base/ui/sidebar.tsx:403–425  ·  view source on GitHub ↗
({
  className,
  render,
  ...props
}: useRender.ComponentProps<"div"> & React.ComponentProps<"div">)

Source from the content-addressed store, hash-verified

401}
402
403function SidebarGroupLabel({
404 className,
405 render,
406 ...props
407}: useRender.ComponentProps<"div"> & React.ComponentProps<"div">) {
408 return useRender({
409 defaultTagName: "div",
410 props: mergeProps<"div">(
411 {
412 className: cn(
413 "cn-sidebar-group-label flex shrink-0 items-center outline-hidden [&>svg]:shrink-0",
414 className
415 ),
416 },
417 props
418 ),
419 render,
420 state: {
421 slot: "sidebar-group-label",
422 sidebar: "group-label",
423 },
424 })
425}
426
427function SidebarGroupAction({
428 className,

Callers

nothing calls this directly

Calls 3

useRenderFunction · 0.90
cnFunction · 0.90
mergePropsFunction · 0.85

Tested by

no test coverage detected