MCPcopy Create free account
hub / github.com/code-with-antonio/nodebase / SidebarMenuItem

Function SidebarMenuItem

src/components/ui/sidebar.tsx:465–474  ·  view source on GitHub ↗
({ className, ...props }: React.ComponentProps<"li">)

Source from the content-addressed store, hash-verified

463}
464
465function SidebarMenuItem({ className, ...props }: React.ComponentProps<"li">) {
466 return (
467 <li
468 data-slot="sidebar-menu-item"
469 data-sidebar="menu-item"
470 className={cn("group/menu-item relative", className)}
471 {...props}
472 />
473 )
474}
475
476const sidebarMenuButtonVariants = cva(
477 "peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] 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 group-has-data-[sidebar=menu-action]/menu-item:pr-8 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 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>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