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

Function CommandDialog

apps/start/src/components/ui/command.tsx:30–59  ·  view source on GitHub ↗
({
  title = 'Command Palette',
  description = 'Search for a command to run...',
  children,
  className,
  showCloseButton = true,
  ...props
}: React.ComponentProps<typeof Dialog> & {
  title?: string;
  description?: string;
  className?: string;
  showCloseButton?: boolean;
})

Source from the content-addressed store, hash-verified

28}
29
30function CommandDialog({
31 title = 'Command Palette',
32 description = 'Search for a command to run...',
33 children,
34 className,
35 showCloseButton = true,
36 ...props
37}: React.ComponentProps<typeof Dialog> & {
38 title?: string;
39 description?: string;
40 className?: string;
41 showCloseButton?: boolean;
42}) {
43 return (
44 <Dialog {...props}>
45 <DialogHeader className="sr-only">
46 <DialogTitle>{title}</DialogTitle>
47 <DialogDescription>{description}</DialogDescription>
48 </DialogHeader>
49 <DialogContent
50 className={cn('overflow-hidden p-0', className)}
51 showCloseButton={showCloseButton}
52 >
53 <Command className="[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[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">
54 {children}
55 </Command>
56 </DialogContent>
57 </Dialog>
58 );
59}
60
61function CommandInput({
62 className,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected