Skip to content

Commit 5206bb1

Browse files
authored
Add portal container prop to dialog content
1 parent 36d954d commit 5206bb1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/react/dialog/src/dialog.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,11 @@ interface DialogContentProps extends DialogContentTypeProps {
229229
* controlling animation with React animation libraries.
230230
*/
231231
forceMount?: true;
232+
233+
/**
234+
* Specify a container element to portal the content into.
235+
*/
236+
portalContainer?: Element | DocumentFragment | null;
232237
}
233238

234239
const DialogContent = React.forwardRef<DialogContentElement, DialogContentProps>(

0 commit comments

Comments
 (0)