Home / Function/ CommandShortcut() — ui Function Reference

CommandShortcut() — ui Function Reference

Architecture documentation for the CommandShortcut() function in command.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  d7a06718_2f0a_b6af_331c_8715a7a226f0["CommandShortcut()"]
  3bbe14d1_264d_de37_24d9_abecee38854b["command.tsx"]
  d7a06718_2f0a_b6af_331c_8715a7a226f0 -->|defined in| 3bbe14d1_264d_de37_24d9_abecee38854b
  style d7a06718_2f0a_b6af_331c_8715a7a226f0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/radix/ui-rtl/command.tsx lines 168–182

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

Subdomains

Frequently Asked Questions

What does CommandShortcut() do?
CommandShortcut() is a function in the ui codebase, defined in apps/v4/examples/radix/ui-rtl/command.tsx.
Where is CommandShortcut() defined?
CommandShortcut() is defined in apps/v4/examples/radix/ui-rtl/command.tsx at line 168.

Analyze Your Own Codebase

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

Try Supermodel Free