Home / Function/ DropdownMenuShortcut() — ui Function Reference

DropdownMenuShortcut() — ui Function Reference

Architecture documentation for the DropdownMenuShortcut() function in dropdown-menu.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  aae2b7d8_4a2a_8d6b_2dfe_b1f29725201d["DropdownMenuShortcut()"]
  dd52e030_1703_c7e9_8247_9cc43bf2410f["dropdown-menu.tsx"]
  aae2b7d8_4a2a_8d6b_2dfe_b1f29725201d -->|defined in| dd52e030_1703_c7e9_8247_9cc43bf2410f
  style aae2b7d8_4a2a_8d6b_2dfe_b1f29725201d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/base/ui-rtl/dropdown-menu.tsx lines 239–253

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

Subdomains

Frequently Asked Questions

What does DropdownMenuShortcut() do?
DropdownMenuShortcut() is a function in the ui codebase, defined in apps/v4/examples/base/ui-rtl/dropdown-menu.tsx.
Where is DropdownMenuShortcut() defined?
DropdownMenuShortcut() is defined in apps/v4/examples/base/ui-rtl/dropdown-menu.tsx at line 239.

Analyze Your Own Codebase

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

Try Supermodel Free