MCPcopy Create free account
hub / github.com/cosscom/coss / CommandDialogPopup

Function CommandDialogPopup

packages/ui/src/components/command.tsx:71–96  ·  view source on GitHub ↗
({
  className,
  children,
  portalProps,
  ...props
}: CommandDialogPrimitive.Popup.Props & {
  portalProps?: CommandDialogPrimitive.Portal.Props;
})

Source from the content-addressed store, hash-verified

69}
70
71export function CommandDialogPopup({
72 className,
73 children,
74 portalProps,
75 ...props
76}: CommandDialogPrimitive.Popup.Props & {
77 portalProps?: CommandDialogPrimitive.Portal.Props;
78}): React.ReactElement {
79 return (
80 <CommandDialogPortal {...portalProps}>
81 <CommandDialogBackdrop />
82 <CommandDialogViewport>
83 <CommandDialogPrimitive.Popup
84 className={cn(
85 "relative row-start-2 flex max-h-105 min-h-0 w-full min-w-0 max-w-xl -translate-y-[calc(1.25rem*var(--nested-dialogs))] scale-[calc(1-0.1*var(--nested-dialogs))] flex-col rounded-2xl border bg-popover not-dark:bg-clip-padding text-popover-foreground opacity-[calc(1-0.1*var(--nested-dialogs))] shadow-lg/5 outline-none 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/72 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:before:shadow-[0_-1px_--theme(--color-white/6%)]",
86 className,
87 )}
88 data-slot="command-dialog-popup"
89 {...props}
90 >
91 {children}
92 </CommandDialogPrimitive.Popup>
93 </CommandDialogViewport>
94 </CommandDialogPortal>
95 );
96}
97
98export function Command({
99 autoHighlight = "always",

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected