MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / DialogOverlay

Function DialogOverlay

packages/react/src/components/dialog.tsx:24–38  ·  view source on GitHub ↗
({
  className,
  ...props
}: React.ComponentProps<typeof DialogPrimitive.Overlay>)

Source from the content-addressed store, hash-verified

22}
23
24function DialogOverlay({
25 className,
26 ...props
27}: React.ComponentProps<typeof DialogPrimitive.Overlay>) {
28 return (
29 <DialogPrimitive.Overlay
30 data-slot="dialog-overlay"
31 className={cn(
32 "fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",
33 className,
34 )}
35 {...props}
36 />
37 );
38}
39
40// base-ui popups (combobox/select) portal their list OUTSIDE the dialog content,
41// so clicking an option reads as an interaction outside the dialog and would

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected