We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
dialog-overlay-props
dialog-content
1 parent 661f11a commit 691d3ccCopy full SHA for 691d3cc
1 file changed
packages/react/v2/components/primitives/dialog.tsx
@@ -40,13 +40,15 @@ function DialogContent({
40
className,
41
children,
42
showCloseButton = true,
43
+ dialogOverlayProps,
44
...props
45
}: React.ComponentProps<typeof DialogPrimitive.Content> & {
46
+ dialogOverlayProps?: React.ComponentProps<typeof DialogOverlay>
47
showCloseButton?: boolean
48
}) {
49
return (
50
<DialogPortal data-slot="dialog-portal">
- <DialogOverlay />
51
+ <DialogOverlay {...dialogOverlayProps} />
52
<DialogPrimitive.Content
53
data-slot="dialog-content"
54
className={cn(
0 commit comments