MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / CommandDialog

Function CommandDialog

packages/web/src/components/ui/command.tsx:26–36  ·  view source on GitHub ↗
({ children, ...props }: DialogProps)

Source from the content-addressed store, hash-verified

24Command.displayName = CommandPrimitive.displayName
25
26const CommandDialog = ({ children, ...props }: DialogProps) => {
27 return (
28 <Dialog {...props}>
29 <DialogContent className="overflow-hidden p-0 shadow-lg">
30 <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">
31 {children}
32 </Command>
33 </DialogContent>
34 </Dialog>
35 )
36}
37
38const CommandInput = React.forwardRef<
39 React.ElementRef<typeof CommandPrimitive.Input>,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected