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

Function SidebarMenuBadge

packages/react/src/components/sidebar.tsx:555–572  ·  view source on GitHub ↗
({ className, ...props }: React.ComponentProps<"div">)

Source from the content-addressed store, hash-verified

553}
554
555function SidebarMenuBadge({ className, ...props }: React.ComponentProps<"div">) {
556 return (
557 <div
558 data-slot="sidebar-menu-badge"
559 data-sidebar="menu-badge"
560 className={cn(
561 "pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium text-sidebar-foreground tabular-nums select-none",
562 "peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",
563 "peer-data-[size=sm]/menu-button:top-1",
564 "peer-data-[size=default]/menu-button:top-1.5",
565 "peer-data-[size=lg]/menu-button:top-2.5",
566 "group-data-[collapsible=icon]:hidden",
567 className,
568 )}
569 {...props}
570 />
571 );
572}
573
574function SidebarMenuSkeleton({
575 className,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected