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

Relationship Graph

Source Code

apps/v4/examples/base/ui/command.tsx lines 166–180

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 ml-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/base/ui/command.tsx.
Where is CommandShortcut() defined?
CommandShortcut() is defined in apps/v4/examples/base/ui/command.tsx at line 166.

Analyze Your Own Codebase

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

Try Supermodel Free