Skip to content

Commit 691d3cc

Browse files
feat: add dialog-overlay-props for dialog-content.
1 parent 661f11a commit 691d3cc

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/react/v2/components/primitives/dialog.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,15 @@ function DialogContent({
4040
className,
4141
children,
4242
showCloseButton = true,
43+
dialogOverlayProps,
4344
...props
4445
}: React.ComponentProps<typeof DialogPrimitive.Content> & {
46+
dialogOverlayProps?: React.ComponentProps<typeof DialogOverlay>
4547
showCloseButton?: boolean
4648
}) {
4749
return (
4850
<DialogPortal data-slot="dialog-portal">
49-
<DialogOverlay />
51+
<DialogOverlay {...dialogOverlayProps} />
5052
<DialogPrimitive.Content
5153
data-slot="dialog-content"
5254
className={cn(

0 commit comments

Comments
 (0)