MCPcopy Create free account
hub / github.com/cursor/community-plugins / CommandShortcut

Function CommandShortcut

apps/cursor/src/components/ui/command.tsx:126–139  ·  view source on GitHub ↗
({
  className,
  ...props
}: React.HTMLAttributes<HTMLSpanElement>)

Source from the content-addressed store, hash-verified

124CommandItem.displayName = CommandPrimitive.Item.displayName;
125
126const CommandShortcut = ({
127 className,
128 ...props
129}: React.HTMLAttributes<HTMLSpanElement>) => {
130 return (
131 <span
132 className={cn(
133 "ml-auto text-xs tracking-widest text-muted-foreground",
134 className,
135 )}
136 {...props}
137 />
138 );
139};
140CommandShortcut.displayName = "CommandShortcut";
141
142export {

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected