MCPcopy
hub / github.com/srcbookdev/srcbook / CommandShortcut

Function CommandShortcut

packages/components/src/components/ui/command.tsx:121–128  ·  view source on GitHub ↗
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>)

Source from the content-addressed store, hash-verified

119CommandItem.displayName = CommandPrimitive.Item.displayName;
120
121const CommandShortcut = ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>) => {
122 return (
123 <span
124 className={cn('ml-auto text-xs tracking-widest text-muted-foreground', className)}
125 {...props}
126 />
127 );
128};
129CommandShortcut.displayName = 'CommandShortcut';
130
131export {

Callers

nothing calls this directly

Calls 1

cnFunction · 0.50

Tested by

no test coverage detected