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

Function CommandDialog

apps/cursor/src/components/ui/command.tsx:25–35  ·  view source on GitHub ↗
({ children, ...props }: DialogProps)

Source from the content-addressed store, hash-verified

23Command.displayName = CommandPrimitive.displayName;
24
25const CommandDialog = ({ children, ...props }: DialogProps) => {
26 return (
27 <Dialog {...props}>
28 <DialogContent className="overflow-hidden p-0 shadow-lg">
29 <Command className="[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5">
30 {children}
31 </Command>
32 </DialogContent>
33 </Dialog>
34 );
35};
36
37const CommandInput = React.forwardRef<
38 React.ElementRef<typeof CommandPrimitive.Input>,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected