diff --git a/packages/react/components/Dialog/Component.tsx b/packages/react/components/Dialog/Component.tsx index f5580b4..a97e747 100644 --- a/packages/react/components/Dialog/Component.tsx +++ b/packages/react/components/Dialog/Component.tsx @@ -1,4 +1,9 @@ -import { Slot, type VariantProps, vcn } from "@pswui-lib"; +import { + ServerSideDocumentFallback, + Slot, + type VariantProps, + vcn, +} from "@pswui-lib"; import React, { type ReactNode, useState } from "react"; import ReactDOM from "react-dom"; @@ -100,8 +105,9 @@ const DialogOverlay = React.forwardRef( }); const { children, closeOnClick, onClick, ...otherPropsExtracted } = otherPropsCompressed; + return ( - <> + {ReactDOM.createPortal(
(
, document.body, )} - +
); }, );