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

Relationship Graph

Source Code

apps/v4/registry/bases/radix/ui/command.tsx lines 180–191

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/radix/ui/command.tsx.
Where is CommandShortcut() defined?
CommandShortcut() is defined in apps/v4/registry/bases/radix/ui/command.tsx at line 180.

Analyze Your Own Codebase

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

Try Supermodel Free