Home / Function/ ContextMenuShortcut() — ui Function Reference

ContextMenuShortcut() — ui Function Reference

Architecture documentation for the ContextMenuShortcut() function in context-menu.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  f89a2343_b5a4_44db_3fea_8542c38241e9["ContextMenuShortcut()"]
  44ab6345_6294_6c88_5d38_b9e0242aaa34["context-menu.tsx"]
  f89a2343_b5a4_44db_3fea_8542c38241e9 -->|defined in| 44ab6345_6294_6c88_5d38_b9e0242aaa34
  style f89a2343_b5a4_44db_3fea_8542c38241e9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/radix/ui-rtl/context-menu.tsx lines 234–248

function ContextMenuShortcut({
  className,
  ...props
}: React.ComponentProps<"span">) {
  return (
    <span
      data-slot="context-menu-shortcut"
      className={cn(
        "text-muted-foreground group-focus/context-menu-item:text-accent-foreground ms-auto text-xs tracking-widest",
        className
      )}
      {...props}
    />
  )
}

Subdomains

Frequently Asked Questions

What does ContextMenuShortcut() do?
ContextMenuShortcut() is a function in the ui codebase, defined in apps/v4/examples/radix/ui-rtl/context-menu.tsx.
Where is ContextMenuShortcut() defined?
ContextMenuShortcut() is defined in apps/v4/examples/radix/ui-rtl/context-menu.tsx at line 234.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free