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
  fda05cc1_2ff1_3121_46b8_eec2bf876018["CommandShortcut()"]
  28611210_7d61_d0c9_2117_f6f1cdf206c1["command.tsx"]
  fda05cc1_2ff1_3121_46b8_eec2bf876018 -->|defined in| 28611210_7d61_d0c9_2117_f6f1cdf206c1
  style fda05cc1_2ff1_3121_46b8_eec2bf876018 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/base/ui/command.tsx lines 181–192

function CommandShortcut({
  className,
  ...props
}: React.ComponentProps<"span">) {
  return (
    <span
      data-slot="command-shortcut"
      className={cn("cn-command-shortcut", className)}
      {...props}
    />
  )
}

Subdomains

Frequently Asked Questions

What does CommandShortcut() do?
CommandShortcut() is a function in the ui codebase, defined in apps/v4/registry/bases/base/ui/command.tsx.
Where is CommandShortcut() defined?
CommandShortcut() is defined in apps/v4/registry/bases/base/ui/command.tsx at line 181.

Analyze Your Own Codebase

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

Try Supermodel Free