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

Function SidebarMenuItem

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

Source from the content-addressed store, hash-verified

438}
439
440function SidebarMenuItem({ className, ...props }: React.ComponentProps<"li">) {
441 return (
442 <li
443 data-slot="sidebar-menu-item"
444 data-sidebar="menu-item"
445 className={cn("group/menu-item relative", className)}
446 {...props}
447 />
448 );
449}
450
451const sidebarMenuButtonVariants = cva(
452 "peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected