CommandShortcut() — ui Function Reference
Architecture documentation for the CommandShortcut() function in command.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 6d4ac4ca_1e5c_5457_da5e_75084694e1e7["CommandShortcut()"] a88c7611_bf85_ef88_f0a5_89d7ec1501ca["command.tsx"] 6d4ac4ca_1e5c_5457_da5e_75084694e1e7 -->|defined in| a88c7611_bf85_ef88_f0a5_89d7ec1501ca style 6d4ac4ca_1e5c_5457_da5e_75084694e1e7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/radix/ui/command.tsx lines 165–179
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}
/>
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does CommandShortcut() do?
CommandShortcut() is a function in the ui codebase, defined in apps/v4/examples/radix/ui/command.tsx.
Where is CommandShortcut() defined?
CommandShortcut() is defined in apps/v4/examples/radix/ui/command.tsx at line 165.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free