MCPcopy Create free account
hub / github.com/arctic-cli/interface / CommandDialogPopup

Function CommandDialogPopup

packages/web/components/ui/command.tsx:71–98  ·  view source on GitHub ↗
({
  className,
  children,
  ...props
}: CommandDialogPrimitive.Popup.Props)

Source from the content-addressed store, hash-verified

69}
70
71function CommandDialogPopup({
72 className,
73 children,
74 ...props
75}: CommandDialogPrimitive.Popup.Props) {
76 const inputRef = React.useRef<HTMLInputElement>(null);
77
78 return (
79 <CommandDialogPortal>
80 <CommandDialogBackdrop />
81 <CommandDialogViewport>
82 <CommandDialogPrimitive.Popup
83 className={cn(
84 "-translate-y-[calc(1.25rem*var(--nested-dialogs))] relative row-start-2 flex max-h-100 min-h-0 w-full min-w-0 max-w-xl scale-[calc(1-0.1*var(--nested-dialogs))] flex-col rounded-2xl border bg-popover bg-clip-padding text-popover-foreground opacity-[calc(1-0.1*var(--nested-dialogs))] shadow-lg transition-[scale,opacity,translate] duration-200 ease-in-out will-change-transform before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-2xl)-1px)] before:bg-muted/50 before:shadow-[0_1px_--theme(--color-black/4%)] data-nested:data-ending-style:translate-y-8 data-nested:data-starting-style:translate-y-8 data-nested-dialog-open:origin-top data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0 **:data-[slot=scroll-area-viewport]:data-has-overflow-y:pe-1 dark:bg-clip-border dark:before:shadow-[0_-1px_--theme(--color-white/8%)]",
85 className,
86 )}
87 data-slot="command-dialog-popup"
88 initialFocus={inputRef}
89 {...props}
90 >
91 <CommandInputContext.Provider value={{ inputRef }}>
92 {children}
93 </CommandInputContext.Provider>
94 </CommandDialogPrimitive.Popup>
95 </CommandDialogViewport>
96 </CommandDialogPortal>
97 );
98}
99
100function Command({
101 autoHighlight = "always",

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected